-
253. Meeting Rooms II
摘要:https://leetcode.com/problems/meeting-rooms-ii/#/solutions Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2]
阅读全文
-
91. Decode Ways
摘要:https://leetcode.com/problems/decode-ways/#/description A message containing letters from A-Z is being encoded to numbers using the following mapping:
阅读全文
-
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 t
阅读全文
-
314. Binary Tree Vertical Order Traversal
摘要:https://leetcode.com/problems/binary-tree-vertical-order-traversal/#/description Given a binary tree, return the vertical order traversal of its nodes
阅读全文
-
311. Sparse Matrix Multiplication
摘要:https://leetcode.com/problems/sparse-matrix-multiplication/#/description Given two sparse matrices A and B, return the result of AB. You may assume th
阅读全文
-
311. Sparse Matrix Multiplication
摘要:https://leetcode.com/problems/sparse-matrix-multiplication/#/description Given two sparse matrices A and B, return the result of AB. You may assume th
阅读全文
-
325. Maximum Size Subarray Sum Equals k
摘要:https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/#/description Given an array nums and a target value k, find the maximum length of a
阅读全文
-
532. K-diff Pairs in an Array
摘要:https://leetcode.com/problems/k-diff-pairs-in-an-array/#/description Given an array of integers and an integer k, you need to find the number of uniqu
阅读全文
-
459. Repeated Substring Pattern
摘要:https://leetcode.com/problems/repeated-substring-pattern/#/description Given a non-empty string check if it can be constructed by taking a substring o
阅读全文
-
119. Pascal's Triangle II
摘要:https://leetcode.com/problems/pascals-triangle-ii/#/solutions Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,
阅读全文
-
21. Merge Two Sorted Lists
摘要:https://leetcode.com/problems/merge-two-sorted-lists/#/description Merge two sorted linked lists and return it as a new list. The new list should be m
阅读全文
-
141. Linked List Cycle
摘要:https://leetcode.com/problems/linked-list-cycle/#/description Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it witho
阅读全文
-
160. Intersection of Two Linked Lists
摘要:https://leetcode.com/problems/intersection-of-two-linked-lists/#/description Write a program to find the node at which the intersection of two singly
阅读全文
-
617. Merge Two Binary Trees
摘要:https://leetcode.com/problems/merge-two-binary-trees/#/description Given two binary trees and imagine that when you put one of them to cover the other
阅读全文
-
387. First Unique Character in a String
摘要:https://leetcode.com/problems/first-unique-character-in-a-string/#/description Given a string, find the first non-repeating character in it and return
阅读全文
-
155. Min Stack - Unsolved
摘要:https://leetcode.com/problems/min-stack/#/solutions Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
阅读全文
-
242. Valid Anagram
摘要:https://leetcode.com/problems/valid-anagram/#/description Given two strings s and t, write a function to determine if t is an anagram of s. For exampl
阅读全文
-
438. Find All Anagrams in a String
摘要:https://leetcode.com/problems/find-all-anagrams-in-a-string/#/description Given a string s and a non-empty string p, find all the start indices of p's
阅读全文
-
414. Third Maximum Number
摘要:https://leetcode.com/problems/third-maximum-number/#/description Given a non-empty array of integers, return the third maximum number in this array. I
阅读全文
-
606. Construct String from Binary Tree
摘要:https://leetcode.com/problems/construct-string-from-binary-tree/#/description You need to construct a string consists of parenthesis and integers from
阅读全文
-
168. Excel Sheet Column Title
摘要:https://leetcode.com/problems/excel-sheet-column-title/#/description Given a positive integer, return its corresponding column title as appear in an E
阅读全文
-
461. Hamming Distance
摘要:https://leetcode.com/problems/hamming-distance/#/description The Hamming distance between two integers is the number of positions at which the corresp
阅读全文
-
Tree Representation Implementation & Traversal
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Trees/Tree%20Representation%20Implementation%20(Lists
阅读全文
-
404. Sum of Left Leaves
摘要:https://leetcode.com/problems/sum-of-left-leaves/#/description Find the sum of all left leaves in a given binary tree. Example: Hint: Q: How to define
阅读全文
-
572. Subtree of Another Tree
摘要:https://leetcode.com/problems/subtree-of-another-tree/#/solutions Given two non-empty binary trees s and t, check whether tree t has exactly the same
阅读全文
-
20. Valid Parentheses
摘要:https://leetcode.com/problems/valid-parentheses/#/description Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine
阅读全文
-
Check time of different search methods
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Ride%20Share%20Start-Up%20Company/R
阅读全文
-
Binary search tree or not
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Ride%20Share%20Start-Up%20Company/R
阅读全文
-
Coin Change
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Ride%20Share%20Start-Up%20Company/R
阅读全文
-
Largest product from 3 integers
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Ride%20Share%20Start-Up%20Company/R
阅读全文
-
Fibonacci number
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20Search%20Engine%20Company%2
阅读全文
-
Find the squareroot
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20Search%20Engine%20Company%2
阅读全文
-
Reverse string using recursion
摘要:On-Site Question 3 - SOLUTION Question Given a string, write a function that uses recursion to reverse it. Requirements You MUST use pen and paper or
阅读全文
-
Dice 5 ==> dice 7
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20Search%20Engine%20Company%2
阅读全文
-
Dice 7 ==> dice 5
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20Search%20Engine%20Company%2
阅读全文
-
100 floors 2 eggs
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20E-Commerce%20Company/E-Comm
阅读全文
-
Determine overlapping rectangles
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20E-Commerce%20Company/E-Comm
阅读全文
-
Product of integers
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20E-Commerce%20Company/E-Comm
阅读全文
-
Maximum profit of stocks
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Large%20E-Commerce%20Company/E-Comm
阅读全文
-
28. Implement strStr()
摘要:https://leetcode.com/problems/implement-strstr/#/description Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -
阅读全文
-
88. Merge Sorted Array
摘要:https://leetcode.com/problems/merge-sorted-array/#/description Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted a
阅读全文
-
234. Palindrome Linked List
摘要:https://leetcode.com/problems/palindrome-linked-list/#/description Given a singly linked list, determine if it is a palindrome. Follow up:Could you do
阅读全文
-
Remove duplicates
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Social%20Network%20Company/Social%2
阅读全文
-
Unsorted, maximum ==> sorted
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Social%20Network%20Company/Social%2
阅读全文
-
Find one unique integer
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Mock%20Interviews/Social%20Network%20Company/Social%2
阅读全文
-
TwoSum
摘要:On-Site Question 1 - SOLUTION Problem Given a list of integers and a target number, write a function that returns a boolean indicating if its possible
阅读全文
-
13. Roman to Integer
摘要:https://leetcode.com/problems/roman-to-integer/#/description Given a roman numeral, convert it to an integer. Input is guaranteed to be within the ran
阅读全文
-
38. Count and Say - Unsolved
摘要:https://leetcode.com/problems/count-and-say/#/description The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211,
阅读全文
-
543. Diameter of Binary Tree
摘要:https://leetcode.com/problems/diameter-of-binary-tree/#/description Given a binary tree, you need to compute the length of the diameter of the tree. T
阅读全文
-
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 an
阅读全文
-
252. Meeting Rooms
摘要:https://leetcode.com/problems/meeting-rooms/#/description Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],
阅读全文
-
125. Valid Palindrome
摘要:https://leetcode.com/problems/valid-palindrome/#/description Given a string, determine if it is a palindrome, considering only alphanumeric characters
阅读全文
-
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 o
阅读全文
-
Implement a Linked List
摘要:https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Linked%20Lists/Linked%20Lists%20Interview%20Problems/
阅读全文
-
121. Best Time to Buy and Sell Stock
摘要: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
阅读全文
-
157. Read N Characters Given Read4
摘要: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
阅读全文
|