Commit Graph
25 Commits
Author SHA1 Message Date
dwrz fb3a4e6b95 Refactor grains/square
Check internally for valid squares.

Shift on 1, not two -- the first bit is to mark 0 and 1, and shifting it once will turn it into 2.
2019-04-22 01:17:19 +00:00
dwrz d43303ce4a Remove grains/validSquare 2019-04-22 01:16:56 +00:00
dwrz a3f7899c0e Add c/grains 2019-04-21 22:13:58 +00:00
dwrz 47fc0ae8a3 Add c/hamming 2019-04-11 00:49:56 +00:00
dwrz 363cd3ab14 Refactor word_count.c
Make internal functions static, reorder for simultaneous declaration.

Reformat whitespace for readability.
2019-04-06 20:32:11 +00:00
dwrz 403aebe443 Remove internal functions from header 2019-04-06 20:31:18 +00:00
dwrz ae26c55033 Refactor c/word-count/is_quote_char
Remove useless break statements.
2019-03-17 03:28:32 +00:00
dwrz 6f0dc97c53 Add c/word-count 2019-03-17 03:13:13 +00:00
dwrz cd8e5aaea6 Refactor c/isogram to import isogram header 2019-03-07 00:06:38 +00:00
dwrz 358185d23f Remove unused declaration from c/isogram header 2019-03-07 00:06:23 +00:00
dwrz 0d25d53182 Add c/gigasecond 2019-03-07 00:01:15 +00:00
dwrz 995f4b4856 Refactor c/isogram to check for null char directly
This gets us from 2n to n.
2019-02-26 13:22:57 +00:00
dwrz fe464969b8 Remove length function from c/isograrm 2019-02-26 13:22:43 +00:00
dwrz 759b358035 Reformat for c/isogram for conciseness 2019-02-24 16:00:24 +00:00
dwrz 8519977157 Refactor c/isogram/length to exclude null char
Since we're no longer copying, we don't need to include that char in our
length. It just adds an extra iteration step.
2019-02-24 15:51:30 +00:00
dwrz 004533a2cb Reformat and document c/isogram 2019-02-24 15:01:08 +00:00
dwrz 2560772f48 Reformat c/isogram 2019-02-24 13:06:50 +00:00
dwrz fbde7b77a8 Remove c/hello-world/tests.out 2019-02-24 13:03:59 +00:00
dwrz 4c07d1ba89 Remove c/isogram/tests.out 2019-02-24 13:03:28 +00:00
dwrz 37181b0c19 Optimize c/isogram/is_isogram to use map, not inner loop 2019-02-24 12:59:43 +00:00
dwrz c5d1d0199b Refactor lowercase to use char values, not pointers in c/isogram 2019-02-24 12:59:21 +00:00
dwrz 2c64e1cbb9 Remove lowercase_pharse in c/isogram 2019-02-24 12:58:13 +00:00
dwrz a0af030035 Remove copy_phrase in c/isogram 2019-02-24 12:57:27 +00:00
dwrz bc5188ce35 Add c/isogram 2019-02-23 15:55:54 +00:00
dwrz 447309177f Add c/hello-world 2019-02-23 15:53:37 +00:00