摘要:
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/#/description Given a binary search tree (BST), find the lowest common an
阅读全文
posted @ 2017-06-06 14:02
Premiumlab
阅读(130)
推荐(0)
摘要:
https://leetcode.com/problems/meeting-rooms/#/description Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],
阅读全文
posted @ 2017-06-06 10:31
Premiumlab
阅读(210)
推荐(0)
摘要:
https://leetcode.com/problems/valid-palindrome/#/description Given a string, determine if it is a palindrome, considering only alphanumeric characters
阅读全文
posted @ 2017-06-05 21:18
Premiumlab
阅读(138)
推荐(0)
摘要:
https://leetcode.com/problems/reverse-linked-list/#/description Reverse a singly linked list. Hint: A linked list can be reversed either iteratively o
阅读全文
posted @ 2017-06-04 21:02
Premiumlab
阅读(110)
推荐(0)
摘要:
https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Linked%20Lists/Linked%20Lists%20Interview%20Problems/
阅读全文
posted @ 2017-06-04 19:12
Premiumlab
阅读(162)
推荐(0)
摘要:
https://leetcode.com/problems/best-time-to-buy-and-sell-stock/#/solutions Say you have an array for which the ith element is the price of a given stoc
阅读全文
posted @ 2017-06-04 17:27
Premiumlab
阅读(139)
推荐(0)
摘要:
https://leetcode.com/problems/read-n-characters-given-read4/#/description The API: int read4(char *buf) reads 4 characters at a time from a file. The
阅读全文
posted @ 2017-06-04 09:18
Premiumlab
阅读(177)
推荐(0)
摘要:
DFS https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Graphs/Implementation%20of%20Depth%20First%20Sear
阅读全文
posted @ 2017-05-25 20:59
Premiumlab
阅读(426)
推荐(0)
摘要:
https://leetcode.com/problems/first-bad-version/#/description You are a product manager and currently leading a team to develop a new product. Unfortu
阅读全文
posted @ 2017-05-24 19:49
Premiumlab
阅读(111)
推荐(0)
摘要:
https://leetcode.com/problems/add-binary/#/description Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"R
阅读全文
posted @ 2017-05-23 17:48
Premiumlab
阅读(125)
推荐(0)