acm,leetcode
mejustdoit
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode微软,亚马逊,雅虎面试题206. Reverse Linked List的java实现
这是一道道简单的链表题,但是有很多大公司都有出这道面试题,可见基础题在面试中也很重要 这里有两种解法,虽然大体相同,但是耗时不同 206. Reverse Linked List Reverse a singly linked list. 第一种解法/** * Definition for singly-linked list. * public class ListNode原创 2017-03-30 21:53:54 · 1387 阅读 · 0 评论 -
leetcode亚马逊面试题Longest Substring Without Repeating Characters
leetcode链接 Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the length is 3. Given "bbbbb",原创 2017-03-23 16:58:39 · 783 阅读 · 0 评论 -
leetcode谷歌面试题279. Perfect Squares
无权图广搜谷歌面试题原创 2017-04-10 16:44:19 · 1375 阅读 · 0 评论 -
leetcode微软谷歌面试题102. Binary Tree Level Order Traversal
队列的层次遍历面试题原创 2017-04-09 10:45:36 · 680 阅读 · 0 评论 -
leetcode facebook面试题71.Simplify Path
71.Simplify Path Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" click to show corner cases. C原创 2017-04-04 15:16:23 · 848 阅读 · 0 评论 -
leetcode微软面试题20.Valid Parentheses
面试题所得到的一些理解原创 2017-03-31 22:00:02 · 1773 阅读 · 2 评论 -
leetcode微软面试题92Reverse Linked List II
92. Reverse Linked List II Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL原创 2017-04-01 17:08:43 · 514 阅读 · 0 评论 -
leetcode Bllomberg面试题11. Container With Most Water
11. Container With Most Water Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of lin原创 2017-03-23 17:20:05 · 567 阅读 · 0 评论 -
递归与动态规划关系
递归与动态规划关系 其实递归与动态规划有紧密的关系,且一般递归都可以转化为动态规划。这个问题从一般的递归构成就能够解释清楚, 首先,问题可以分解,拆成很多重叠子问题才可以求解,而动态规划也是这一思路,说白了动态规划其实就是记忆化了的 递归程序。动态规划把很多递归问题的解存储下来,这样就省去了求许多子问题的解,从而达到了快速求解的目的。 递归其实就是自上往下求解,原创 2017-11-16 20:10:00 · 5137 阅读 · 0 评论
分享