本文根據(jù)Hawstein的BLOG,加入了自己的一些代碼實(shí)現(xiàn)和理解。概括:動態(tài)規(guī)劃算法通?;谝粋€(gè)遞推公式及一個(gè)或多個(gè)初始狀態(tài)。 當(dāng)前子問題的解...
Determine whether an integer is a palindrome. Do this without extra spac...
Implement atoi to convert a string to an integer.實(shí)現(xiàn)atoi,把一個(gè)字符串轉(zhuǎn)換為整數(shù)。Hint...
Reverse digits of an integer.反轉(zhuǎn)整數(shù)數(shù)字。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...