上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 31 下一页
摘要: 题目: 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], 阅读全文
posted @ 2017-05-30 00:10 panini 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 order r 阅读全文
posted @ 2017-05-29 22:50 panini 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sort 阅读全文
posted @ 2017-05-29 11:18 panini 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 链接: http://leetcode.com/problems/set-matrix-zeroes/ 阅读全文
posted @ 2017-05-29 10:33 panini 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c" Corner Cases 阅读全文
posted @ 2017-05-28 07:25 panini 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 along its pa 阅读全文
posted @ 2017-05-21 07:22 panini 阅读(99) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-05-21 02:13 panini 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-05-20 11:53 panini 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-05-20 09:38 panini 阅读(2) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a node from a cyclic linked list which has been sorted, write a function to insert a value into the list such that it remains a cycli 阅读全文
posted @ 2017-05-19 05:25 panini 阅读(615) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 31 下一页