maahikachitagi commited on
Commit
84176a2
Β·
verified Β·
1 Parent(s): b8ba472

Update knowledge.txt

Browse files
Files changed (1) hide show
  1. knowledge.txt +0 -1
knowledge.txt CHANGED
@@ -1,4 +1,3 @@
1
- Technical β€” Tech
2
  Question: Write a function to detect a cycle in a linked list.
3
  Possible Answers: 1. Use Floyd’s Tortoise and Hare algorithm to detect the cycle. 2. Track visited nodes using a hash set and check for repeats. 3. Traverse the list and check if a node points back to a previous one.
4
  Question: How would you design a URL shortening service like Bit.ly?
 
 
1
  Question: Write a function to detect a cycle in a linked list.
2
  Possible Answers: 1. Use Floyd’s Tortoise and Hare algorithm to detect the cycle. 2. Track visited nodes using a hash set and check for repeats. 3. Traverse the list and check if a node points back to a previous one.
3
  Question: How would you design a URL shortening service like Bit.ly?