随笔分类 -  Algorithm / Data Structure

上一页 1 2 3 4 5 下一页
Leetcode 94. Binary Tree Inorder Traversal
摘要:https://leetcode.com/problems/binary-tree-inorder-traversal/ Medium https://leetcode.com/problems/binary-tree-inorder-traversal/ Medium https://leetco 阅读全文
posted @ 2019-07-15 18:29 浩然119 阅读(215) 评论(0) 推荐(0)
面试总结之算法(Algorithm)
摘要:All contents are moved to haoran119/interview (github.com) 学习笔记之LeetCode - 浩然119 - 博客园 (cnblogs.com) 学习笔记之15道简单算法题 - 浩然119 - 博客园 (cnblogs.com) 【ZZ】每个程 阅读全文
posted @ 2019-07-13 16:05 浩然119 阅读(412) 评论(0) 推荐(0)
Leetcode 160. Intersection of Two Linked Lists
摘要:https://leetcode.com/problems/intersection-of-two-linked-lists/ Easy Easy Easy Write a program to find the node at which the intersection of two singl 阅读全文
posted @ 2019-07-13 13:31 浩然119 阅读(236) 评论(0) 推荐(0)
Leetcode 328. Odd Even Linked List
摘要:Medium Medium Medium Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the no 阅读全文
posted @ 2019-07-10 21:19 浩然119 阅读(120) 评论(0) 推荐(0)
Leetcode 2. Add Two Numbers
摘要:https://leetcode.com/problems/add-two-numbers/ Medium Medium Medium You are given two non-empty linked lists representing two non-negative integers. T 阅读全文
posted @ 2019-07-08 22:07 浩然119 阅读(117) 评论(0) 推荐(0)
Leetcode 334. Increasing Triplet Subsequence
摘要:https://leetcode.com/problems/increasing-triplet-subsequence/ Medium Medium Medium Given an unsorted array return whether an increasing subsequence of 阅读全文
posted @ 2019-07-07 18:33 浩然119 阅读(134) 评论(0) 推荐(0)
Leetcode 73. Set Matrix Zeroes
摘要:https://leetcode.com/problems/set-matrix-zeroes/ Medium https://leetcode.com/problems/set-matrix-zeroes/ Medium Given a m x n matrix, if an element is 阅读全文
posted @ 2019-07-03 19:20 浩然119 阅读(137) 评论(0) 推荐(0)
Leetcode 15. 3Sum
摘要:https://leetcode.com/problems/3sum/ Medium Medium Medium Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0 阅读全文
posted @ 2019-07-02 19:28 浩然119 阅读(122) 评论(0) 推荐(0)
Leetcode 4. Median of Two Sorted Arrays
摘要:https://leetcode.com/problems/median-of-two-sorted-arrays/ Hard There are two sorted arrays nums1 and nums2 of size m and n respectively. There are tw 阅读全文
posted @ 2019-03-06 15:55 浩然119 阅读(130) 评论(0) 推荐(0)
Leetcode 3. Longest Substring Without Repeating Characters
摘要:https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring without repeati 阅读全文
posted @ 2019-02-28 18:14 浩然119 阅读(134) 评论(0) 推荐(0)
学习笔记之与 30 家公司过招,得到了这章面试心法
摘要:与 30 家公司过招,得到了这章面试心法 - 算法与数据结构 https://mp.weixin.qq.com/s/Ml5RdaK4KMSZMctWko7wwA 总结下来,技术面试大致有三种情形,下边一一来讲讲。 一、考察数据结构和算法为主 IT 公司一般都会考察数据结构和算法能力,其中以百度与爱奇 阅读全文
posted @ 2019-02-19 13:07 浩然119 阅读(255) 评论(0) 推荐(0)
LeetCode 155. Min Stack
摘要:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov 阅读全文
posted @ 2018-04-02 19:19 浩然119 阅读(188) 评论(0) 推荐(0)
【ZZ】堆和堆的应用:堆排序和优先队列
摘要:堆和堆的应用:堆排序和优先队列 https://mp.weixin.qq.com/s/dM8IHEN95IvzQaUKH5zVXw 堆和堆的应用:堆排序和优先队列 2018-02-27 算法与数据结构 来源: Spground spground.github.io/2017/07/07/堆和堆的应用 阅读全文
posted @ 2018-03-30 07:13 浩然119 阅读(206) 评论(0) 推荐(0)
【ZZ】详解哈希表的查找
摘要:详解哈希表的查找 https://mp.weixin.qq.com/s/j2j9gS62L-mmOH4p89OTKQ 详解哈希表的查找 2018-03-01 算法与数据结构 来自:静默虚空 http://www.cnblogs.com/jingmoxukong/p/4332252.html 哈希表和 阅读全文
posted @ 2018-03-30 07:03 浩然119 阅读(476) 评论(0) 推荐(0)
LeetCode 17. Letter Combinations of a Phone Number
摘要:https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ Given a digit string, return all possible letter combinations that th 阅读全文
posted @ 2018-03-14 15:22 浩然119 阅读(170) 评论(0) 推荐(0)
LeetCode 139. Word Break
摘要:https://leetcode.com/problems/word-break/description/ Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, deter 阅读全文
posted @ 2018-03-10 17:17 浩然119 阅读(171) 评论(0) 推荐(0)
LeetCode 208. Implement Trie (Prefix Tree)
摘要:https://leetcode.com/problems/implement-trie-prefix-tree/description/ Implement a trie with insert, search, and startsWith methods. Note:You may assum 阅读全文
posted @ 2018-02-22 18:07 浩然119 阅读(197) 评论(0) 推荐(0)
LeetCode 215. Kth Largest Element in an Array
摘要:https://leetcode.com/problems/kth-largest-element-in-an-array/ Medium Find the kth largest element in an unsorted array. Note that it is the kth large 阅读全文
posted @ 2018-02-16 18:11 浩然119 阅读(346) 评论(0) 推荐(0)
LeetCode 235. Lowest Common Ancestor of a Binary Search Tree
摘要:https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/description/ Given a binary search tree (BST), find the lowest common anc 阅读全文
posted @ 2018-02-15 06:40 浩然119 阅读(195) 评论(0) 推荐(0)
LeetCode 206. Reverse Linked List
摘要:https://leetcode.com/problems/reverse-linked-list/description/ Reverse a singly linked list. Hint: A linked list can be reversed either iteratively or 阅读全文
posted @ 2018-02-14 18:57 浩然119 阅读(316) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页