本文根据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...