876. Middle of the Linked List

Given the head of a singly linked list, return the middle node of the linked list.

文章標籤

yoruru 發表在 痞客邦 留言(0) 人氣()

283. Move Zeroes

Given 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) 人氣()

202. Happy Number

Write an algorithm to determine if a number n is happy.

文章標籤

yoruru 發表在 痞客邦 留言(0) 人氣()

136. Single Number

Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.

文章標籤

yoruru 發表在 痞客邦 留言(0) 人氣()

下周要面試了,程式考C,只好緊急刷題來喚醒跟C語言的回憶。

刷題列表參考:LeetCode面試必刷總復習題  | Tech Interview Prep

文章標籤

yoruru 發表在 痞客邦 留言(0) 人氣()

328. Odd Even Linked List

Given 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) 人氣()

92. Reverse Linked List II

Example 1:

文章標籤

yoruru 發表在 痞客邦 留言(0) 人氣()

225. Implement Stack using Queues

Implement 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) 人氣()

How To Fail With Elizabeth Day | Podcast on Spotify

作者 :Elizabeth Day(伊莉莎白.德依)

文章標籤

yoruru 發表在 痞客邦 留言(0) 人氣()

148. Sort List

Given the head of a linked list, return the list after sorting it in ascending order.

文章標籤

yoruru 發表在 痞客邦 留言(0) 人氣()