Skip to content

Commit f74b0b9

Browse files
authored
Merge pull request #108 from BrianLusina/feat/is-prefix-of-word
feat(strings, trie): is prefix of word
2 parents 484b865 + 3b41d91 commit f74b0b9

27 files changed

+212
-29
lines changed

DIRECTORY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@
707707
* [Test Greatest Common Divisor](https://github.com/BrianLusina/PythonSnips/blob/master/pystrings/greatest_common_divisor/test_greatest_common_divisor.py)
708708
* Inttostr
709709
* [Test Int To Str](https://github.com/BrianLusina/PythonSnips/blob/master/pystrings/inttostr/test_int_to_str.py)
710+
* Is Prefix
711+
* [Test Is Prefix Of Word](https://github.com/BrianLusina/PythonSnips/blob/master/pystrings/is_prefix/test_is_prefix_of_word.py)
710712
* Is Unique
711713
* [Test Is Unique](https://github.com/BrianLusina/PythonSnips/blob/master/pystrings/is_unique/test_is_unique.py)
712714
* Issubsequence

algorithms/fast_and_slow/happy_number/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ Return TRUE if n is a happy number, and FALSE if not.
1515

1616
### Sample Example 1
1717

18-
![Sample Example 1.1](example_1_1.png)
19-
![Sample Example 1.2](example_1_2.png)
20-
![Sample Example 1.3](example_1_3.png)
18+
![Sample Example 1.1](images/example/example_1_1.png)
19+
![Sample Example 1.2](images/example/example_1_2.png)
20+
![Sample Example 1.3](images/example/example_1_3.png)
2121

2222
### Sample Example 2
2323

24-
![Sample Example 2.1](example_2_1.png)
25-
![Sample Example 2.2](example_2_2.png)
26-
![Sample Example 2.3](example_2_3.png)
24+
![Sample Example 2.1](images/example/example_2_1.png)
25+
![Sample Example 2.2](images/example/example_2_2.png)
26+
![Sample Example 2.3](images/example/example_2_3.png)
2727

2828
## Solution Example
2929

3030
Below shows an example using Floyd's Cycle Detection Algorithm or Tortoise and Hare algorithm to detect a cycle
3131
for the number 2.
3232

33-
![Solution Example 1](solution_example_1.png)
34-
![Solution Example 2](solution_example_2.png)
35-
![Solution Example 3](solution_example_3.png)
36-
![Solution Example 4](solution_example_4.png)
37-
![Solution Example 5](solution_example_5.png)
38-
![Solution Example 6](solution_example_6.png)
39-
![Solution Example 7](solution_example_7.png)
40-
![Solution Example 8](solution_example_8.png)
33+
![Solution Example 1](images/solution/solution_example_1.png)
34+
![Solution Example 2](images/solution/solution_example_2.png)
35+
![Solution Example 3](images/solution/solution_example_3.png)
36+
![Solution Example 4](images/solution/solution_example_4.png)
37+
![Solution Example 5](images/solution/solution_example_5.png)
38+
![Solution Example 6](images/solution/solution_example_6.png)
39+
![Solution Example 7](images/solution/solution_example_7.png)
40+
![Solution Example 8](images/solution/solution_example_8.png)

algorithms/fast_and_slow/happy_number/example_1_1.png renamed to algorithms/fast_and_slow/happy_number/images/example/example_1_1.png

File renamed without changes.

algorithms/fast_and_slow/happy_number/example_1_2.png renamed to algorithms/fast_and_slow/happy_number/images/example/example_1_2.png

File renamed without changes.

algorithms/fast_and_slow/happy_number/example_1_3.png renamed to algorithms/fast_and_slow/happy_number/images/example/example_1_3.png

File renamed without changes.

algorithms/fast_and_slow/happy_number/example_2_1.png renamed to algorithms/fast_and_slow/happy_number/images/example/example_2_1.png

File renamed without changes.

algorithms/fast_and_slow/happy_number/example_2_2.png renamed to algorithms/fast_and_slow/happy_number/images/example/example_2_2.png

File renamed without changes.

algorithms/fast_and_slow/happy_number/example_2_3.png renamed to algorithms/fast_and_slow/happy_number/images/example/example_2_3.png

File renamed without changes.

algorithms/fast_and_slow/happy_number/solution_example_1.png renamed to algorithms/fast_and_slow/happy_number/images/solution/solution_example_1.png

File renamed without changes.

algorithms/fast_and_slow/happy_number/solution_example_2.png renamed to algorithms/fast_and_slow/happy_number/images/solution/solution_example_2.png

File renamed without changes.

0 commit comments

Comments
 (0)