Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-12-22 19:18:27
阅读次数:
180
感觉Leetcode出书了以后judge速度快了不少,但是新出的题目质量不大好
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...
分类:
其他好文 时间:
2014-12-22 11:09:40
阅读次数:
121
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...
分类:
其他好文 时间:
2014-12-22 08:15:16
阅读次数:
202
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:
其他好文 时间:
2014-12-21 23:28:50
阅读次数:
224
标题:Merge Sorted Array通过率:31.1%难度:简单Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough s...
分类:
其他好文 时间:
2014-12-21 23:22:34
阅读次数:
249
Merge Sorted ArrayGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that i...
分类:
其他好文 时间:
2014-12-21 22:02:28
阅读次数:
189
Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtre...
分类:
其他好文 时间:
2014-12-21 21:55:07
阅读次数:
230
1 ;以"年/月/日 时:分:秒"的格式, 显示当前的日期, 时间 2 assume cs:code 3 code segment 4 main: 5 mov al,9 6 out 70h,al ;告诉CM...
分类:
编程语言 时间:
2014-12-21 19:22:32
阅读次数:
217
1 ;名称:ILOVEU程序 2 ;使用BIOS提供的中断例程 3 assume cs:code 4 code segment 5 main: 6 mov cx,880 ;显示背景22*80 7 mov d...
分类:
移动开发 时间:
2014-12-21 16:36:17
阅读次数:
269
1 ;此乃安装程序 2 ;功能:将8086cpu中断类型码为0 的中断向量设置为我们编写的中断服务程序入口地址 3 ;该中断在除法发送溢出的时候产生 4 5 assume cs:code 6 code segment 7 main: 8 mov ax,cs 9 ...
分类:
编程语言 时间:
2014-12-20 16:48:53
阅读次数:
177