码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2014-10-26 17:04:21    阅读次数:193
[Leetcode] Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-10-26 16:58:18    阅读次数:134
【LeetCode】ZigZag Conversion 解题报告
【题目】 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N ...
分类:其他好文   时间:2014-10-26 16:57:47    阅读次数:182
leetcode - N-Queens II
Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. class Solution { private: int res; public: int totalNQuee...
分类:其他好文   时间:2014-10-26 15:43:03    阅读次数:168
JQuery中$.ajax()方法参数详解
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求超...
分类:Web程序   时间:2014-10-26 15:31:06    阅读次数:190
Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:其他好文   时间:2014-10-26 15:30:30    阅读次数:159
PO订单审批拒绝API
DECLARE l_return_status VARCHAR2(1); l_return_code VARCHAR2(1000); l_exception_msg VARCHAR2(4000); l_online_report_id NUMBER; BEGIN --init mo_global.set_policy_context(p_access_...
分类:Windows程序   时间:2014-10-26 11:48:37    阅读次数:351
LeetCose-Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-10-26 11:35:14    阅读次数:142
leetcode-valid number ZZ
http://blog.csdn.net/kenden23/article/details/18696083本题是十分麻烦的题目,情况是非常多,网上也很多方法,其中最有效,优雅的方法是有限状态自动机(Finite automata machine)。其他一般方法都会十分复杂,而代码不能算优雅。为此我...
分类:其他好文   时间:2014-10-26 11:30:51    阅读次数:171
leetcode palindrome number
1,采用reverse的方法,来比较是不是palindrome2,reverse number的方法!!3,还要记得负数的情况package Leetcode;public class PalindromeNumber {public boolean isPalindrome(int x) { .....
分类:其他好文   时间:2014-10-26 08:00:01    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!