gats
BAN USER
Questions (4)
Comments (2)
Reputation 110
- 1of 1 vote
AnswersFind the number of substrings of a string that are palindromes.
- gats in United States| Report Duplicate | Flag | PURGE
Facebook Software Engineer / Developer Algorithm - 0of 0 votes
AnswersReverse a Linked List. Iterative and then recursive.
- gats in United States| Report Duplicate | Flag | PURGE
Zynga Software Engineer / Developer Algorithm - 0of 0 votes
AnswersReverse words : "I love to play" becomes "play to love I".
- gats in United States
He wanted it to be done in place.| Report Duplicate | Flag | PURGE
Zynga Software Engineer / Developer Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Its O(lg n) for each node. You will end up inserting n nodes in worst case, that's O(n lg n).
- gats July 08, 2012