上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页
摘要: 原题链接在这里: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 阅读(294) 评论(0) 推荐(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 阅读(332) 评论(0) 推荐(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 阅读(186) 评论(0) 推荐(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 阅读(1918) 评论(0) 推荐(0) 编辑
摘要: floorKey(key), ceilingKey(key) 是包含key在内的上线下线 lowerKey(key), higherKey(key) 是不包含key的上线下线. 阅读全文
posted @ 2020-02-04 06:02 Dylan_Java_NYC 阅读(170) 评论(0) 推荐(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 阅读(254) 评论(0) 推荐(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 阅读(1492) 评论(0) 推荐(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 阅读(283) 评论(0) 推荐(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 阅读(223) 评论(0) 推荐(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 阅读(311) 评论(0) 推荐(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 阅读(1656) 评论(0) 推荐(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 阅读(1162) 评论(0) 推荐(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 阅读(1264) 评论(0) 推荐(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 阅读(293) 评论(0) 推荐(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 阅读(283) 评论(0) 推荐(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 阅读(336) 评论(0) 推荐(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 阅读(249) 评论(0) 推荐(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 阅读(562) 评论(0) 推荐(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 阅读(248) 评论(0) 推荐(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 阅读(401) 评论(0) 推荐(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 阅读(1072) 评论(0) 推荐(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 阅读(177) 评论(0) 推荐(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 阅读(379) 评论(0) 推荐(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 阅读(1878) 评论(0) 推荐(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 阅读(323) 评论(0) 推荐(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 阅读(348) 评论(0) 推荐(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 阅读(566) 评论(0) 推荐(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 阅读(1863) 评论(0) 推荐(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 阅读(356) 评论(0) 推荐(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 阅读(204) 评论(0) 推荐(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 阅读(552) 评论(0) 推荐(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 阅读(236) 评论(0) 推荐(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 阅读(345) 评论(0) 推荐(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 阅读(115) 评论(0) 推荐(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 阅读(578) 评论(0) 推荐(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 阅读(275) 评论(0) 推荐(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 阅读(414) 评论(0) 推荐(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 阅读(154) 评论(0) 推荐(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 阅读(410) 评论(0) 推荐(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 阅读(439) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页