876. Middle of the Linked ListGiven the head of a singly linked list, return the middle node of the linked list.
yoruru 發表在 痞客邦 留言(0) 人氣(3)
283. Move ZeroesGiven an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.
yoruru 發表在 痞客邦 留言(0) 人氣(7)
202. Happy NumberWrite an algorithm to determine if a number n is happy.
yoruru 發表在 痞客邦 留言(0) 人氣(5)
136. Single NumberGiven a non-empty array of integers nums, every element appears twice except for one. Find that single one.
yoruru 發表在 痞客邦 留言(0) 人氣(20)

下周要面試了,程式考C,只好緊急刷題來喚醒跟C語言的回憶。
刷題列表參考:LeetCode面試必刷總復習題 | Tech Interview Prep
yoruru 發表在 痞客邦 留言(0) 人氣(125)
328. Odd Even Linked ListGiven the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.
yoruru 發表在 痞客邦 留言(0) 人氣(2)
92. Reverse Linked List IIExample 1:
yoruru 發表在 痞客邦 留言(0) 人氣(7)
225. Implement Stack using QueuesImplement a last-in-first-out (LIFO) stack using only two queues. The implemented stack should support all the functions of a normal stack (push, top, pop, and empty).
yoruru 發表在 痞客邦 留言(0) 人氣(2)
yoruru 發表在 痞客邦 留言(0) 人氣(8)
148. Sort ListGiven the head of a linked list, return the list after sorting it in
ascending order.
yoruru 發表在 痞客邦 留言(0) 人氣(4)