题目描述:
LeetCode 789. Escape The Ghosts
You are playing a simplified Pacman game. You start at the point (0, 0)
, and your destination is (target[0], target[1])
. There are several ghosts on the map, the i-th ghost starts at (ghosts ...
LeetCode 789. Escape The Ghosts
You are playing a simplified Pacman game. You start at the point (0, 0)
, and your destination is (target[0], target[1])
. There are several ghosts on the map, the i-th ghost starts at (ghosts ...
X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. A number is valid if each digit remains a digit after ...
LeetCode Weekly Contest 72是LeetCode举办的第七十六场正式周赛,共4道题目,比赛时长1.5小时。
比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-72/
题解列表:
LeetCode 784. Letter Case Permutation
LeetCode 785. Is Graph Bipartite?
LeetCode 786. K-th Smallest Prime Fraction
A sorted list A
contains 1, plus some number of primes. Then, for every p < q in the list, we consider the fraction p/q.
What is the K
-th smallest ...
LeetCode 787. Cheapest Flights Within K Stops
There are n
cities connected by m
flights. Each fight starts from city u
and arrives at v
with a price w
.
Now given all the cities and fights, together with starting ...