1 Nisan 2020 Çarşamba

Linked List Orta Nokta


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

--
--


Hiç yorum yok: