Commit Graph

9 Commits

Author SHA1 Message Date
Serg Gini
9ff7468e9e D solutions (#305)
* Added 1 and 2 chapters

for D lang

* [D] Added recursion code

All examples were ported from the Python code directly to D.
Naming convention of Dlang is not allowing to run code files, which started with numbers. To run examples rename the files

* [D] quicksort code

* [D] Added hashtable example

Based on the Python code

* Create 01_breadth_first_search.d

Added D example for breadth-first search

* Create 01_filesystem_dfs.d

Filesystem example in D

* Create 01_dijkstras_algorithm.d

Added Dijkstras algorithm implementation for D

* Create 01_set_covering.d

Added greedy algorythm for D

* Create 01_longest_common_sub.d

Added dynamic programming example for D language.
The code is based on Rust example

* Added modules definition

Required to run code with names starting with numbers

* Fixed proper unsigned handling
2025-05-01 18:24:42 -05:00
Marco Milanesi
df180e6f7b Add elixir longest common substring implementation (#307) 2025-05-01 18:23:06 -05:00
Igor Moraes
182947e5fb Add TypeScript examples for chapters 10 and 11 (#311) 2025-05-01 18:22:19 -05:00
Artem Chernyak
f4910688db add dynamic programming examples in rust (#296) 2024-12-07 07:38:07 -06:00
Paolo Grisoli
8a13efde83 Update examples for Zig (#287)
* update zig in chapters 1-6

* fix zig dijkstras algo

* fix zig greedy algo

* fix longest_common_subsequence in zig

* cleanup

* test: use testing allocator
2024-12-07 07:29:48 -06:00
spainn
11a2de7473 Update 01_longest_common_subsequence.py (#277)
The original code was creating a 4x5 grid instead of 5x4.  I also made it display by row.

Co-authored-by: WhileRested <148598154+WhileRested@users.noreply.github.com>
2024-03-22 15:03:28 -05:00
spainn
5d068870bf Update 02_longest_common_substring.py (#276)
The original code did not work correctly out of the box.  It generated a (4,5) grid instead of a (5,4) grid as the book's answer grid shows.  Also on line 10 of my code I changed `dp_table[i-1][i-1] + 1` to `dp_table[i-1][j-1] +1`.  I also updated the display to display by row.

Co-authored-by: WhileRested <148598154+WhileRested@users.noreply.github.com>
2024-03-22 15:02:03 -05:00
Mikhail
7d16656674 Add a solution to the problem on Kotlin (#269)
* Solution. Longest Common Subsequence
2024-03-22 14:51:00 -05:00
Aditya Bhargava
933acafaf3 reorg and add code for second edition 2023-08-09 08:20:19 -05:00