LeetCode
文章平均质量分 74
Vincent乐
计算机视觉、机器学习、深度学习
展开
-
leetcode_question_85 Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.Above is a histogram where width转载 2014-07-24 17:14:44 · 724 阅读 · 0 评论 -
Leetcode: Word Ladder
Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:Only one letter can be changed at a timeEach intermediate word m原创 2014-09-05 14:06:39 · 926 阅读 · 0 评论 -
Leetcode: Word Ladder II
Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:Only one letter can be changed at a timeEach intermediate word must exi原创 2014-09-05 20:04:09 · 1272 阅读 · 0 评论 -
LeetCode:2.1.6 Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest consecutive elements sequence is [1, 2, 3原创 2014-08-20 21:19:20 · 900 阅读 · 0 评论 -
LeetCode:Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.255.11.135", "255.255.111.35"]. (Order原创 2014-09-06 12:19:46 · 769 阅读 · 0 评论 -
LeetCode:8.1 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.For exa原创 2014-08-21 11:57:12 · 748 阅读 · 0 评论 -
Leetcode:Word Search
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertic原创 2014-09-07 01:32:11 · 1009 阅读 · 0 评论 -
leetcode: N-Queues
N-QueensThe n-queens puzzle is the problem of placing n queens on ann×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solutions to the n-queens p原创 2014-09-05 22:46:46 · 1114 阅读 · 0 评论