Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be o... Read More
posted @ 2014-08-25 23:20
Xylophone
Views(307)
Comments(0)
Diggs(0)
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl... Read More
posted @ 2014-08-25 21:35
Xylophone
Views(136)
Comments(0)
Diggs(0)
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font ... Read More
posted @ 2014-08-25 21:14
Xylophone
Views(144)
Comments(0)
Diggs(0)
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.class Solution {public: ... Read More
posted @ 2014-08-25 11:43
Xylophone
Views(122)
Comments(0)
Diggs(0)
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c... Read More
posted @ 2014-08-25 11:25
Xylophone
Views(144)
Comments(0)
Diggs(0)
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon... Read More
posted @ 2014-08-25 11:09
Xylophone
Views(136)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号