码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
Add Two Numbers
题目You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a singl...
分类:其他好文   时间:2014-08-07 12:51:00    阅读次数:188
Implement strStr() leetcode java
题目:Implement strStr().Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.题解:其实我觉得这题。。为啥不给个更明确....
分类:编程语言   时间:2014-08-07 12:43:19    阅读次数:227
Edit Distance leetcode java
题目:Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha....
分类:编程语言   时间:2014-08-07 05:11:48    阅读次数:258
Scramble String leetcode java
题目:Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible represent....
分类:编程语言   时间:2014-08-07 05:11:29    阅读次数:334
OCP读书笔记(22) - 题库(ExamB)
101.Identify two situations in which you can use Data Recovery Advisor for recovery. (Choose two.)A. The user has dropped an important table that need...
分类:其他好文   时间:2014-08-06 22:00:42    阅读次数:721
OCP读书笔记(21) - 题库(ExamA)
3.Your database is in ARCHIVELOG mode. You have two online redo log groups, each of which contains one redo member. When you attempt to start the data...
分类:其他好文   时间:2014-08-06 21:48:22    阅读次数:610
hdu--2830--任意交换列的矩阵
这2天 做的都是有关矩阵的 =-=....小小矩阵 竟然有这么多 花头...这题 的特点是 We can swap any two columns any times 就是可以任意交换X列与Y列 任意次一开始 我还担心我的方法 会不会tle 看到3000ms就放心了。。。我总觉得 会有更高效的方法 ...
分类:其他好文   时间:2014-08-06 18:14:41    阅读次数:263
[leetcode]Copy List with Random Pointer
Copy List with Random PointerA linked list is given such that each node contains an additional random pointer which could point to any node in the lis...
分类:其他好文   时间:2014-08-06 17:44:31    阅读次数:225
HDU4920:Matrix multiplication
Problem Description Given two matrices A and B of size n×n, find the product of them. bobo hates big integers. So you are only asked to find the result modulo 3.   Input The input con...
分类:其他好文   时间:2014-08-06 14:58:51    阅读次数:220
HDU4911:Inversion
Problem Description bobo has a sequence a1,a2,…,an. He is allowed to swap two adjacent numbers for no more than k times. Find the minimum number of inversions after his swaps. Note: The numbe...
分类:其他好文   时间:2014-08-06 14:51:38    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!