码迷,mamicode.com
首页 >  
搜索关键字:water    ( 3290个结果
[Water]Hdu 2054 A == B ?
这道题类似Java的大数。#include #include using namespace std;string format(string str){ bool zheng=true; int ppos=str.find('.'); int len=str.length(); string s1...
分类:其他好文   时间:2015-06-03 15:09:05    阅读次数:134
[leetcode][042] Trapping Rain Water (Java)
题目在这里:https://leetcode.com/problems/trapping-rain-water/[标签] Array; Stack; Two Pointers这个题我感觉很难,我自己是完全不会。下面贴的是别人想到的好方法,自己适当做了些简单调整。我觉得,这个解法非常巧妙的使用了双向的...
分类:移动开发   时间:2015-06-02 09:15:32    阅读次数:149
[LeetCode-JAVA] Number of Islands
题目:Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjace...
分类:编程语言   时间:2015-06-01 11:15:07    阅读次数:125
css 动画类库Animate.css
地址为:http://daneden.github.io/animate.css/源码地址为:https://github.com/daneden/animate.css简单的使用方法:Animate.cssJust-add-water CSS animationanimate.cssis a bu...
分类:Web程序   时间:2015-05-31 12:14:55    阅读次数:1198
swust oj--牛喝水
Time limit(ms): 1000 Memory limit(kb): 65535The cows have a line of 20 water bowls from which they drink. The bowls can be either right-side-up (pr...
分类:其他好文   时间:2015-05-30 22:22:46    阅读次数:184
【Container With Most Water】cpp
题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints ...
分类:其他好文   时间:2015-05-30 16:37:24    阅读次数:78
leetcode 11 -- Container With Most Water
Container With Most Water 题目: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is...
分类:其他好文   时间:2015-05-30 09:28:02    阅读次数:137
leetcode_11题——Container With Most Water(两个指针)
Container With Most WaterTotal Accepted:38917Total Submissions:121822My SubmissionsQuestionSolutionGivennnon-negative integersa1,a2, ...,an, where eac...
分类:其他好文   时间:2015-05-27 15:35:35    阅读次数:129
No.42 Trapping Rain Water
No.42 Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able...
分类:移动开发   时间:2015-05-26 18:13:46    阅读次数:240
water men
今天,被一位先生问到了一个Java的问题,下面的代码应该输出什么: Class Demo{ public static void main(String[] args){ String s = "0"; change(s); System.out.println(s); } static void change(String s){ s = "123"; } } 说...
分类:其他好文   时间:2015-05-25 09:57:23    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!