Compare two version numbers version1 and version2.
If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.
You may assume that the version strings are non-empty and...
分类:
其他好文 时间:
2015-02-07 23:03:11
阅读次数:
166
题目要求:Sudoku SolverWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume tha...
分类:
其他好文 时间:
2015-02-07 18:49:37
阅读次数:
182
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times.
You may assume that the array is non-empty and the majority element a...
分类:
其他好文 时间:
2015-02-07 14:36:17
阅读次数:
110
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
Find the minimum element.
You may assume no duplicate exists in ...
分类:
其他好文 时间:
2015-02-07 13:09:58
阅读次数:
108
题目描述:Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and ...
分类:
其他好文 时间:
2015-02-06 23:10:27
阅读次数:
133
题目链接:Sudoku Solver
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 only one unique solution.
...
分类:
其他好文 时间:
2015-02-06 00:49:25
阅读次数:
155
预先在E:\masm5.0\MYDOC目录下写好hello.asm文件:DATA SEGMENT BUF DB 'HELLO WORLD! THIS IS MY FIRST ASM FILE! $'DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATA...
分类:
其他好文 时间:
2015-02-05 13:18:37
阅读次数:
132
题目链接:Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume ...
分类:
其他好文 时间:
2015-02-04 23:21:55
阅读次数:
148
The problem:Given an array of sizen, find the majority element. The majority element is the element that appears more than? n/2 ?times.You may assume ...
分类:
其他好文 时间:
2015-02-04 07:04:34
阅读次数:
205
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-02-03 21:02:01
阅读次数:
155