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 single digit. Add the two...
                            
                            
                                分类:
其他好文   时间:
2014-06-11 00:35:15   
                                阅读次数:
243
                             
                         
                    
                        
                            
                            
                                Merge two sorted linked lists and return it as 
a new list. The new list should be made by splicing together the nodes of the 
first two lists.水题不解释,一A,...
                            
                            
                                分类:
其他好文   时间:
2014-06-10 08:58:37   
                                阅读次数:
191
                             
                         
                    
                        
                            
                            
                                戳我去解题Givennnon-negative integers representing an 
elevation map where the width of each bar is 1, compute how much water it is 
able to trap after raini...
                            
                            
                                分类:
移动开发   时间:
2014-06-10 08:48:04   
                                阅读次数:
267
                             
                         
                    
                        
                            
                            
                                转载:http://blog.csdn.net/li4951/article/details/8693212leetcode上有好几道关于数组中几个数据和为target的题目。恰好正在看剑指offer中“和为s的两个数组这章”,据此思想,leetcode上的三道题目都被我解决了。总结一下。1.two...
                            
                            
                                分类:
其他好文   时间:
2014-06-10 08:35:50   
                                阅读次数:
253
                             
                         
                    
                        
                            
                            
                                题目描述Timy is visiting a beautiful park. There are M 
rivers and N lakes(marked 1-N), any two lakes are connected by at most one 
river. He knows that the...
                            
                            
                                分类:
其他好文   时间:
2014-06-09 20:57:26   
                                阅读次数:
259
                             
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/scramble-string/题意:Given 
a strings1, we may represent it as a binary tree by partitioning it to two 
non-empty su...
                            
                            
                                分类:
编程语言   时间:
2014-06-09 19:02:59   
                                阅读次数:
197
                             
                         
                    
                        
                            
                            
                                package chap04_Divide_And_Conquer;import static 
org.junit.Assert.*;import java.util.Arrays;import org.junit.Test;/** * 矩阵相乘的算法 * 
* @author xiaojintao....
                            
                            
                                分类:
其他好文   时间:
2014-06-09 16:12:24   
                                阅读次数:
273
                             
                         
                    
                        
                            
                            
                                题目链接The count-and-say sequence is the sequence of 
integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 
1"or11.11is read off a...
                            
                            
                                分类:
其他好文   时间:
2014-06-09 15:53:03   
                                阅读次数:
246
                             
                         
                    
                        
                            
                            
                                题目链接题意: 给出 n * n的矩阵,要求将矩阵顺时针旋转90°(不使用额外空间) 1 /* 2 
Basically, divide the array into 4 along the diagonals, 3 then for each element 
in the top ...
                            
                            
                                分类:
其他好文   时间:
2014-06-09 15:28:14   
                                阅读次数:
280
                             
                         
                    
                        
                            
                            
                                今天开始刷leetcode上的题,争取校招前刷过一遍,从AC率最高的题目开始刷,不废话了,看题题目:Single 
NumberGiven an array of integers, every element appearstwiceexcept for one. Find 
that single ...
                            
                            
                                分类:
其他好文   时间:
2014-06-09 12:57:45   
                                阅读次数:
260