码迷,mamicode.com
首页 >  
搜索关键字:解题报告    ( 2279个结果
【LeetCode】Subsets 解题报告
【题目】 Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. ...
分类:其他好文   时间:2014-12-08 17:47:58    阅读次数:191
【LeetCode】Unique Paths II 解题报告
【题目】 Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively...
分类:其他好文   时间:2014-12-08 17:47:15    阅读次数:167
【LeetCode】Unique Paths 解题报告
【题目】 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to ...
分类:其他好文   时间:2014-12-08 17:45:44    阅读次数:213
【原创】leetCodeOj --- Find Peak Element 解题报告
题目地址:https://oj.leetcode.com/problems/find-peak-element/题目内容:A peak element is an element that is greater than its neighbors.Given an input array wher...
分类:其他好文   时间:2014-12-08 17:37:32    阅读次数:114
【LeetCode】Trapping Rain Water解题报告
【题目】 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example,  Given [0,1,0,2,1,0,1,...
分类:移动开发   时间:2014-12-08 15:32:44    阅读次数:233
【LeetCode】Combinations 解题报告
【题目】 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: [ [2,4], [3,4], [2,3], [1,2], [1,3],...
分类:其他好文   时间:2014-12-07 16:29:01    阅读次数:190
BestCoder21 1002.Formula 解题报告
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5139题目意思:给出一个数 n,求出 f(n)。 可以发现有以下规律: f(1) = 1! f(2) = 1! * 2! f(3) = 1! * 2! * 3! f(n) = 1! * 2!...
分类:其他好文   时间:2014-12-07 16:18:42    阅读次数:248
LeetCode: Merge Two Sorted Lists 解题报告
Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the fir...
分类:其他好文   时间:2014-12-07 14:58:26    阅读次数:178
LeetCode: Palindrome Partitioning II 解题报告
Palindrome Partitioning IIGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for ...
分类:其他好文   时间:2014-12-06 22:52:25    阅读次数:291
codeforces 493B.Vasya and Wrestling 解题报告
题目链接:http://codeforces.com/problemset/problem/493/B题目意思:给出 n 个 techniques,每个 technique 的值为 ai。 ai > 0 表示把这个分数给第一个wrestler,ai 2 #include 3 #include ...
分类:其他好文   时间:2014-12-06 22:49:21    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!