原创 leetCode75. Sort Colors
題目 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent
原创 LeetCode6. ZigZag Conversion
題目 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to
原创 LeetCode13. Roman to Integer
題目 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 思路 百度
原创 LeetCode2.Add Two Numbers
題目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse
原创 LeetCode121. Best Time to Buy and Sell Stock
題目 Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitte
原创 LeetCode26. Remove Duplicates from Sorted Array
題目 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new le