From f2f28eacb0df8c29ecaac61fbcd02c5b624d797e Mon Sep 17 00:00:00 2001 From: ericmiranda7 <47097072+ericmiranda7@users.noreply.github.com> Date: Fri, 10 Jan 2025 07:05:26 +0530 Subject: [PATCH] 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 --- src/others/tortoise_and_hare.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/others/tortoise_and_hare.md b/src/others/tortoise_and_hare.md index 385ca69f4..9d2ba0a96 100644 --- a/src/others/tortoise_and_hare.md +++ b/src/others/tortoise_and_hare.md @@ -110,5 +110,6 @@ And since we let the slow pointer start at the start of the linked list, after $ # Problems: - [Linked List Cycle (EASY)](https://leetcode.com/problems/linked-list-cycle/) +- [Happy Number (Easy)](https://leetcode.com/problems/happy-number/) - [Find the Duplicate Number (Medium)](https://leetcode.com/problems/find-the-duplicate-number/)
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: