摘要:
原题链接在这里:https://leetcode.com/problems/two-city-scheduling/ 题目: There are 2N people a company is planning to interview. The cost of flying the i-th per
阅读全文
posted @ 2020-02-17 13:49
Dylan_Java_NYC
阅读(304)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/invalid-transactions/ 题目: A transaction is possibly invalid if: the amount exceeds $1000, or; if it occurs withi
阅读全文
posted @ 2020-02-17 13:16
Dylan_Java_NYC
阅读(344)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/building-h2o/ 题目: There are two kinds of threads, oxygen and hydrogen. Your goal is to group these threads to fo
阅读全文
posted @ 2020-02-13 06:29
Dylan_Java_NYC
阅读(199)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/design-bounded-blocking-queue/ 题目: Implement a thread safe bounded blocking queue that has the following methods
阅读全文
posted @ 2020-02-13 06:11
Dylan_Java_NYC
阅读(1930)
推荐(0)
摘要:
floorKey(key), ceilingKey(key) 是包含key在内的上线下线 lowerKey(key), higherKey(key) 是不包含key的上线下线.
阅读全文
posted @ 2020-02-04 06:02
Dylan_Java_NYC
阅读(174)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/swim-in-rising-water/ 题目: On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j).
阅读全文
posted @ 2020-02-01 16:07
Dylan_Java_NYC
阅读(262)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list/ 题目: Given a node from a Circular Linked List which is sorted in ascen
阅读全文
posted @ 2020-01-24 11:47
Dylan_Java_NYC
阅读(1510)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/k-closest-points-to-origin/ 题目: We have a list of points on the plane. Find the K closest points to the origin (
阅读全文
posted @ 2020-01-20 06:30
Dylan_Java_NYC
阅读(294)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/reaching-points/ 题目: A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y)
阅读全文
posted @ 2020-01-17 11:56
Dylan_Java_NYC
阅读(234)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/asteroid-collision/ 题目: We are given an array asteroids of integers representing asteroids in a row. For each as
阅读全文
posted @ 2020-01-17 11:34
Dylan_Java_NYC
阅读(319)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/shortest-way-to-form-string/ 题目: From any string, we can form a subsequence of that string by deleting some numb
阅读全文
posted @ 2020-01-17 08:52
Dylan_Java_NYC
阅读(1665)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/campus-bikes-ii/ 题目: On a campus represented as a 2D grid, there are N workers and M bikes, with N <= M. Each wo
阅读全文
posted @ 2020-01-17 08:09
Dylan_Java_NYC
阅读(1184)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/campus-bikes/ 题目: On a campus represented as a 2D grid, there are N workers and M bikes, with N <= M. Each worke
阅读全文
posted @ 2020-01-16 13:20
Dylan_Java_NYC
阅读(1279)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/24-game/ 题目: You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operate
阅读全文
posted @ 2020-01-16 12:48
Dylan_Java_NYC
阅读(308)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/split-array-largest-sum/ 题目: Given an array which consists of non-negative integers and an integer m, you can sp
阅读全文
posted @ 2020-01-16 12:06
Dylan_Java_NYC
阅读(293)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/ 题目: In a row of dominoes, A[i] and B[i] represent the top and bottom hal
阅读全文
posted @ 2020-01-16 02:22
Dylan_Java_NYC
阅读(345)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/design-hashmap/ 题目: Design a HashMap without using any built-in hash table libraries. To be specific, your desig
阅读全文
posted @ 2020-01-15 12:48
Dylan_Java_NYC
阅读(256)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/ 题目: You have d dice, and each die has f faces numbered 1, 2, ..., f. Retur
阅读全文
posted @ 2020-01-15 12:20
Dylan_Java_NYC
阅读(571)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/coin-change-2/ 题目: You are given coins of different denominations and a total amount of money. Write a function
阅读全文
posted @ 2020-01-15 08:17
Dylan_Java_NYC
阅读(256)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/dinner-plate-stacks/ 题目: You have an infinite number of stacks arranged in a row and numbered (left to right) fr
阅读全文
posted @ 2020-01-14 13:54
Dylan_Java_NYC
阅读(408)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/search-suggestions-system/ 题目: Given an array of strings products and a string searchWord. We want to design a s
阅读全文
posted @ 2020-01-14 04:06
Dylan_Java_NYC
阅读(1081)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/prime-palindrome/ 题目: Find the smallest prime palindrome greater than or equal to N. Recall that a number is pri
阅读全文
posted @ 2020-01-13 04:29
Dylan_Java_NYC
阅读(188)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/concatenated-words/ 题目: Given a list of words (without duplicates), please write a program that returns all conc
阅读全文
posted @ 2020-01-13 03:17
Dylan_Java_NYC
阅读(384)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/minimum-cost-to-connect-sticks/ 题目: You have some sticks with positive integer lengths. You can connect any two
阅读全文
posted @ 2020-01-10 00:58
Dylan_Java_NYC
阅读(1887)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/reorder-data-in-log-files/ 题目: You have an array of logs. Each log is a space delimited string of words. For eac
阅读全文
posted @ 2020-01-09 14:39
Dylan_Java_NYC
阅读(330)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/prison-cells-after-n-days/ 题目: There are 8 prison cells in a row, and each cell is either occupied or vacant. Ea
阅读全文
posted @ 2020-01-09 10:59
Dylan_Java_NYC
阅读(358)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/rotting-oranges/ 题目: In a given grid, each cell can have one of three values: the value 0 representing an empty
阅读全文
posted @ 2020-01-09 10:14
Dylan_Java_NYC
阅读(587)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/critical-connections-in-a-network/ 题目: There are n servers numbered from 0 to n-1 connected by undirected server
阅读全文
posted @ 2020-01-08 10:31
Dylan_Java_NYC
阅读(1869)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/ 题目: Find the length of the longest substring T of a give
阅读全文
posted @ 2020-01-06 12:59
Dylan_Java_NYC
阅读(371)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/utf-8-validation/ 题目: A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: For 1
阅读全文
posted @ 2020-01-06 02:24
Dylan_Java_NYC
阅读(213)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/best-meeting-point/ 题目: Given an m x n binary grid grid where each 1 marks the home of one friend, return the mi
阅读全文
posted @ 2020-01-06 01:15
Dylan_Java_NYC
阅读(667)
推荐(0)
摘要:
https://leetcode.com/problems/path-sum-iii/ https://leetcode.com/problems/path-sum-iv/ https://leetcode.com/problems/maximum-product-of-three-numbers/
阅读全文
posted @ 2020-01-05 10:23
Dylan_Java_NYC
阅读(243)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/guess-the-word/ 题目: This problem is an interactive problem new to the LeetCode platform. We are given a word lis
阅读全文
posted @ 2020-01-05 07:41
Dylan_Java_NYC
阅读(361)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/jewels-and-stones/ 题目: You're given strings J representing the types of stones that are jewels, and S representi
阅读全文
posted @ 2020-01-05 07:13
Dylan_Java_NYC
阅读(120)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/previous-permutation-with-one-swap/ 题目: Given an array A of positive integers (not necessarily distinct), return
阅读全文
posted @ 2020-01-05 04:23
Dylan_Java_NYC
阅读(597)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/find-the-closest-palindrome/ 题目: Given an integer n, find the closest integer (not including itself), which is a
阅读全文
posted @ 2020-01-05 04:01
Dylan_Java_NYC
阅读(292)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/stream-of-characters/ 题目: Implement the StreamChecker class as follows: StreamChecker(words): Constructor, init
阅读全文
posted @ 2020-01-02 11:57
Dylan_Java_NYC
阅读(421)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/leaf-similar-trees/ 题目: Consider all the leaves of a binary tree. From left to right order, the values of those
阅读全文
posted @ 2020-01-02 10:49
Dylan_Java_NYC
阅读(157)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/range-module/ 题目: A Range Module is a module that tracks ranges of numbers. Your task is to design and implement
阅读全文
posted @ 2020-01-02 09:57
Dylan_Java_NYC
阅读(427)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/design-snake-game/ 题目: Design a Snake game that is played on a device with screen size = width x height. Play th
阅读全文
posted @ 2019-12-30 10:11
Dylan_Java_NYC
阅读(457)
推荐(0)