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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy