02 2018 档案

摘要:A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ 阅读全文
posted @ 2018-02-28 15:11 轻风舞动 阅读(568) 评论(0) 推荐(0) 编辑
摘要:You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number 阅读全文
posted @ 2018-02-28 12:58 轻风舞动 阅读(356) 评论(0) 推荐(0) 编辑
摘要:Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2018-02-28 09:41 轻风舞动 阅读(489) 评论(0) 推荐(0) 编辑
摘要:Design and implement a TwoSum class. It should support the following operations:add and find. add - Add the number to an internal data structure.find 阅读全文
posted @ 2018-02-28 09:24 轻风舞动 阅读(891) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2018-02-28 09:11 轻风舞动 阅读(871) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2018-02-28 08:51 轻风舞动 阅读(1035) 评论(0) 推荐(0) 编辑
摘要:The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur 阅读全文
posted @ 2018-02-28 08:40 轻风舞动 阅读(1251) 评论(0) 推荐(0) 编辑
摘要:The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu 阅读全文
posted @ 2018-02-28 08:35 轻风舞动 阅读(1972) 评论(0) 推荐(0) 编辑
摘要:How would you design a URL shortening service that is similar to TinyURL? Background:TinyURL is a URL shortening service where you enter a URL such as 阅读全文
posted @ 2018-02-28 07:25 轻风舞动 阅读(767) 评论(0) 推荐(0) 编辑
摘要:TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http 阅读全文
posted @ 2018-02-28 07:10 轻风舞动 阅读(410) 评论(0) 推荐(0) 编辑
摘要:Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont 阅读全文
posted @ 2018-02-28 05:16 轻风舞动 阅读(1119) 评论(0) 推荐(0) 编辑
摘要:Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 阅读全文
posted @ 2018-02-28 02:38 轻风舞动 阅读(1960) 评论(2) 推荐(0) 编辑
摘要:Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2018-02-27 10:24 轻风舞动 阅读(706) 评论(0) 推荐(0) 编辑
摘要:There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo 阅读全文
posted @ 2018-02-27 08:54 轻风舞动 阅读(649) 评论(0) 推荐(0) 编辑
摘要:There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai 阅读全文
posted @ 2018-02-27 08:23 轻风舞动 阅读(1357) 评论(0) 推荐(0) 编辑
摘要:You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2018-02-27 05:52 轻风舞动 阅读(1471) 评论(0) 推荐(0) 编辑
摘要:All LeetCode Questions List(Part of Answers, still updating) 题目汇总及部分答案(持续更新中) Leetcode problems classified by company 题目按公司分类(Last updated: October 2, 阅读全文
posted @ 2018-02-27 04:37 轻风舞动 阅读(9691) 评论(0) 推荐(0) 编辑
摘要:There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent 阅读全文
posted @ 2018-02-27 04:15 轻风舞动 阅读(552) 评论(0) 推荐(0) 编辑
摘要:All LeetCode Questions List 题目汇总 Sorted by frequency of problems that appear in real interviews. Last updated: October 2, 2017Google (214)534 Design T 阅读全文
posted @ 2018-02-27 03:41 轻风舞动 阅读(4667) 评论(0) 推荐(0) 编辑
摘要:You are given a m x n 2D grid initialized with these three possible values. Fill each empty room with the distance to its nearest gate. If it is impos 阅读全文
posted @ 2018-02-27 03:29 轻风舞动 阅读(1123) 评论(0) 推荐(0) 编辑
摘要:The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 阅读全文
posted @ 2018-02-26 05:39 轻风舞动 阅读(470) 评论(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 path. 阅读全文
posted @ 2018-02-25 15:13 轻风舞动 阅读(494) 评论(0) 推荐(0) 编辑
摘要: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 p 阅读全文
posted @ 2018-02-25 14:54 轻风舞动 阅读(458) 评论(0) 推荐(0) 编辑
摘要: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 p 阅读全文
posted @ 2018-02-25 12:47 轻风舞动 阅读(735) 评论(0) 推荐(0) 编辑
摘要:今天博客开通申请通过了,以后可以来这里发东西了,嘿嘿😁 阅读全文
posted @ 2018-02-24 02:30 轻风舞动 阅读(107) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示