码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
LeetCode——
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
【leetcode】Merge Two Sorted Lists
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
Leetcode:Trapping Rain Water
戳我去解题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
leetcode: 2Sum/3Sum/3SumClosest/4Sum系列问题(转载)
转载:http://blog.csdn.net/li4951/article/details/8693212leetcode上有好几道关于数组中几个数据和为target的题目。恰好正在看剑指offer中“和为s的两个数组这章”,据此思想,leetcode上的三道题目都被我解决了。总结一下。1.two...
分类:其他好文   时间:2014-06-10 08:35:50    阅读次数:253
hust 1230 beautiful
题目描述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
[leetcode]Scramble String @ Python
原题地址: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
第四章 分治策略 4.2 矩阵乘法的Strassen算法
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
LeetCode:Count and Say
题目链接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
LeetCode --- Rotate Image
题目链接题意: 给出 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 - Single Number
今天开始刷leetcode上的题,争取校招前刷过一遍,从AC率最高的题目开始刷,不废话了,看题题目:Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single ...
分类:其他好文   时间:2014-06-09 12:57:45    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!