#learning
Read more stories on Hashnode
Articles with this tag
計算爬樓梯的最低成本 · 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. Example 1: 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...
簡介 Intro 以下取自維基百科 Manacher 於 1975 年發現了一種線性時間演算法,可以在列出給定字串中從任意位置開始的所有回文子串。並且,Apostolico, Breslauer & Galil...
回文連結序列 · 234. Palindrome Linked List 題目敘述 Given the head of a singly linked list, return true if it is a palindrome. Example 1: Input: head =...
反轉連結序列 · 206. Reverse Linked List 題目敘述 Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head =...