Problem A recent question, inspired me to think about how far we’ve come, and how much easier tasks are in […]
Category: Strings
String puzzle – operations with numbers inside of strings
Problem Puzzle description: input is dimensions (length, width, heigth) of various presents. Example: 2x3x1 5x9x10 1x40x2 Part 1: determine the […]
Convert string to spinal case
Problem Due to an excercise, I’ve made a function that converts given string to spinal case just-like-this-one (all lower case). […]
Grouping string to list of strings
Problem The following is function that I have written to group a string to groups, based on whether there’s consecutive […]
Nicely tabulate a list of strings for printing
Problem I have a list of strings of variable lengths, and I want to pretty-print them so they are lining […]
fwrite(s
Problem 1 Solution len stream);
++errors
Problem s Solution buf);
Formatting a datetime string in the YYYYMMDD format
Problem I’m working with some strange APIs that requires the dates to be sent in the YYYYMMDD format. I was […]
Zalera calculator
Problem I recently started replaying Final Fantasy XII. One of it’s optional bosses, Zalera, has, among others, the following mechanics: […]
Leetcode: Longest substring without repeating characters
Problem I saw the editorial solutions for this problem, but they are written in an unfamiliar language. I’d like to […]