码迷,mamicode.com
首页 >  
搜索关键字:算法面试    ( 461个结果
【LeetCode-面试算法经典-Java实现】【066-Plus One(加一)】
【066-Plus One(加一)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  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 di...
分类:编程语言   时间:2015-08-02 06:24:03    阅读次数:159
【LeetCode-面试算法经典-Java实现】【067-Add Binary(二进制加法)】
【067-Add Binary(二进制加法)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given two binary strings, return their sum (also a binary string).   For example,   a = "11"   b = "1"   Return "100" 题目大意  给定两个二进制的字符串...
分类:编程语言   时间:2015-08-02 06:23:42    阅读次数:194
【LeetCode-面试算法经典-Java实现】【064-Minimum Path Sum(最小路径和)】
【064-Minimum Path Sum(最小路径和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers...
分类:编程语言   时间:2015-08-02 06:23:02    阅读次数:928
【LeetCode-面试算法经典-Java实现】【061-Rotate List(旋转单链表)】
【061-Rotate List(旋转单链表)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a list, rotate the list to the right by k places, where k is non-negative.   For example:   Given 1->2->3->4->5->NULL and k = 2,...
分类:编程语言   时间:2015-08-01 07:45:38    阅读次数:164
【LeetCode-面试算法经典-Java实现】【058-Length of Last Word (最后一个单词的长度)】
【058-Length of Last Word (最后一个单词的长度)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the...
分类:编程语言   时间:2015-07-31 07:51:19    阅读次数:149
【LeetCode-面试算法经典-Java实现】【059-Spiral Matrix II(螺旋矩阵II)】
【059-Spiral Matrix II(螺旋矩阵II)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.   For example,   Given n = 3,   Yo...
分类:编程语言   时间:2015-07-31 07:50:51    阅读次数:179
【LeetCode-面试算法经典-Java实现】【075-Sort Colors (颜色排序)】
【075-Sort Colors (颜色排序)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the...
分类:编程语言   时间:2015-07-30 07:12:16    阅读次数:136
【LeetCode-面试算法经典-Java实现】【077-Combinations(组合数)】
【077-Combinations(组合数)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given two integers n and k, return all possible combinations of k numbers out of 1 … n.   For example,   If n = 4 and k = 2, a solution is...
分类:编程语言   时间:2015-07-30 07:11:55    阅读次数:201
【LeetCode-面试算法经典-Java实现】【074-Search a 2D Matrix(搜索二维矩阵)】
【074-Search a 2D Matrix(搜索二维矩阵)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:   Integers in...
分类:编程语言   时间:2015-07-30 07:10:54    阅读次数:181
【LeetCode-面试算法经典-Java实现】【038-Count and Say(计数和表述)】
【038-Count and Say(计数和表述)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  The count-and-say sequence is the sequence of integers beginning as follows:   1, 11, 21, 1211, 111221, ...   1 is read off as "one 1"...
分类:编程语言   时间:2015-07-28 06:42:49    阅读次数:156
461条   上一页 1 ... 17 18 19 20 21 ... 47 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!