Content-Length: 256083 | pFad | http://github.com/cp-algorithms/cp-algorithms/commit/f2f28eacb0df8c29ecaac61fbcd02c5b624d797e

B3 Update tortoise_and_hare.md · cp-algorithms/cp-algorithms@f2f28ea · GitHub
Skip to content

Commit f2f28ea

Browse files
authored
Update tortoise_and_hare.md
the happy number problem can be solved using a hashset, but it can also be solved in constant space using floyd's algo
1 parent dfacc51 commit f2f28ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/others/tortoise_and_hare.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,6 @@ And since we let the slow pointer start at the start of the linked list, after $
110110

111111
# Problems:
112112
- [Linked List Cycle (EASY)](https://leetcode.com/problems/linked-list-cycle/)
113+
- [Happy Number (Easy)](https://leetcode.com/problems/happy-number/)
113114
- [Find the Duplicate Number (Medium)](https://leetcode.com/problems/find-the-duplicate-number/)
114115

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/cp-algorithms/cp-algorithms/commit/f2f28eacb0df8c29ecaac61fbcd02c5b624d797e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy