-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
67 lines (60 loc) · 1.35 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Collection of interesting bits of code/algos
May include spoilers to programming puzzles...
Includes:
Algorithms
- Average image hash. Ruby
- Burrow-Wheeler transform. Ruby
- Dynamic Programming
- Coin sum. js
- Longest non-decreasing sequence. js
- Edit distance. Python
- Geometry
- Rectangle intersection. js
- Hamming distance. Ruby
- Largest k elements selection (kselect). C++,js
- Prime Sieve. C
- Sorting:
- Quicksort. C, js
- Mergesort. js
- Selection sort. C
- Searching
- Sorted Grid Find. Ruby
- Binary search. js
- String
- String to integer (atoi). C
- Reverse order of words in a string. C
Data structures
- Bloomfilter. C++
- Linked list. C
- Skiplist. Go
- Stack. C
- Binary search tree. C
Misc
- Addition implemented in bit operations.
- n-base conversion. C
- Directory path expansion. Ruby
Golf
- Anagrams. Perl
TODO:
Algorithms:
- longest common subsequence
- vigenere cipher
- shell sort
- fft
- DFS, BFS
- dijkstras
- prim/kruskal
- mergesort
- min cut
- permutations
- random walk
- Robin Karp string search/plagiarism detection
- kager's algo (monte carlo)
- Missing algos from here http://www.scriptol.com/programming/list-algorithms.php
Data structures:
- trie
- red black tree
- quad tree
- btree
- queue
- AVL trees