10 2015 档案
摘要: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 ...
阅读全文
摘要:Valid Parentheses题目:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets...
阅读全文
摘要:Remove Nth Node From End of List题目:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list:...
阅读全文
摘要:Longest Common Prefix题目:Write a function to find the longest common prefix string amongst an array of strings.找出所有字符串的最长公共前缀。解题:string&&vectorhttp://b...
阅读全文
摘要:Roman to Integer题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.解题: 首先我们先观察罗马数字的规律罗马数字共有七...
阅读全文
摘要:Palindrome Number题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integer...
阅读全文
摘要:ZigZag Conversion------(String)题目:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to displ...
阅读全文
摘要:题目:Reverse IntegerTotal Accepted: 102355 Total Submissions: 436373 Difficulty: Easy Reverse digits of an integer. Example1: x = 123, return 321Example...
阅读全文

浙公网安备 33010602011771号