Articles in this series
198. House Robber
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only...
計算爬樓梯的最低成本 · 746. Min Cost Climbing Stairs
You are given an integer array cost where cost[i] is the cost of ith step on a staircase. Once you pay...
輪替列表 · 61. Rotate List
Given the head of a linked list, rotate the list to the right by k places.
Input: head = [1,2,3,4,5], k =...
插入排序循環連結序列 · 708. Insert into a Sorted Circular Linked List
Given a Circular Linked List node, which is sorted in ascending order, write a function...
找出最長的回文子字串 · 5. Longest Palindromic Substring
Given a string s, return the longest palindromic substring in s.
Input: s = "babad"
合併兩個排序序列 · 21. Merge Two Sorted Lists
You are given the heads of two sorted linked lists list1 and list2.
Merge the two lists in a one sorted list....