Notes, News and Tutorials about Java World and Related Technologies just for fun!
CATEGORIES
HOME
PROJECTS
Wednesday, April 1, 2020
Link List Middle Node
https://leetcode.com/explore/challenge/card/30-day-leetcoding-challenge/529/week-2/3290/
>> Solution 1 : Find Size, Then Middle
O(n) time, O(1) space
--
--
>> Solution 2 : Slow and Fast Pointer
O(n) time, O(1) space
--
--
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment