
本文根據Hawstein的BLOG,加入了自己的一些代碼實現和理解。概括:動態規劃算法通常基于一個遞推公式及一個或多個初始狀態。 當前子問題的解...
Determine whether an integer is a palindrome. Do this without extra spac...
Implement atoi to convert a string to an integer.實現atoi,把一個字符串轉換為整數。Hint...
Reverse digits of an integer.反轉整數數字。Example1: x = 123, return 321Example...
The string "PAYPALISHIRING" is written in a zigzag pattern on a given nu...
Given a string S, find the longest palindromic substring in S. You may a...
There are two sorted arrays nums1 and nums2 of size m and n respectively...
Given a string, find the length of the longest substring without repeati...
You are given two linked lists representing two non-negative numbers. Th...