Commit Graph
38 Commits
Author SHA1 Message Date
dwrz 61cea0dd0c Refactor c/difference-of-squares
Curious to benchmark the different approaches.
2019-06-07 02:37:02 +00:00
dwrz f8127fdf4a Refactor c/difference-of-squares 2019-06-07 01:35:25 +00:00
dwrz e91639751e Add c/difference-of-squares
Work-in-progress.
2019-06-05 02:51:54 +00:00
dwrz ba5ac622c8 Refactor c/beer-song/beer_song.h 2019-05-31 22:08:48 +00:00
dwrz 73920fa56d Refactor c/beer-song/beer_song.c 2019-05-31 22:08:36 +00:00
dwrz 36f046e6e9 Refactor c/beer-song sing var name for clarity 2019-05-15 02:04:50 +00:00
dwrz 3393154d15 Update c/beer-song sing 2019-05-15 01:54:21 +00:00
dwrz 087912bfaa Update c/beer-song verse 2019-05-15 01:54:11 +00:00
dwrz b95a9106e7 Update c/beer-song header 2019-05-15 01:53:48 +00:00
dwrz ceb217299d Update c/beer-song tests 2019-05-15 01:53:31 +00:00
dwrz 77cb1aa803 Add c/beer-song
Work-in-progress.
2019-05-11 21:05:36 +00:00
dwrz 2856722710 Add number of squares constant in grains
For clarity.
2019-05-11 20:17:39 +00:00
dwrz 764270694f Document grains 2019-04-22 01:17:59 +00:00
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