https://leetcode.com/problems/first-unique-character-in-a-string/description/
First non-repeating char position.
First non-repeating char position.
👍3👎1
https://leetcode.com/problems/sort-characters-by-frequency/description
Sort string by char's frequencies.
Sort string by char's frequencies.
👍5
https://leetcode.com/problems/largest-divisible-subset/description
Longest subset of divisible by
Longest subset of divisible by
s[i] % s[j] == 0 || s[j] % s[i] == 0
.👍1👎1
https://leetcode.com/problems/cherry-pickup-ii/description/
Maximum paths sum of two robots top-down in XY grid.
Maximum paths sum of two robots top-down in XY grid.
👍3
https://leetcode.com/problems/rearrange-array-elements-by-sign/description/
Rearrange array to positive-negative sequence.
Rearrange array to positive-negative sequence.
👍3
https://leetcode.com/problems/find-polygon-with-the-largest-perimeter/description/
The largest subset
The largest subset
sum(a[..i]) > a[i + 1]
where a
is a subset of array.👍3
https://leetcode.com/problems/least-number-of-unique-integers-after-k-removals/description
Min uniq count after removing
Min uniq count after removing
k
numbers.👍3
https://leetcode.com/problems/furthest-building-you-can-reach/description
Max index to climb
Max index to climb
diff = a[i +1] - a[i] > 0
using bricks -= diff
and ladders--
for each.👍3
https://leetcode.com/problems/meeting-rooms-iii/description
Most frequent room of
Most frequent room of
0..<n
where each meeting[i]=[start, end)
takes or delays until first available.👍2
https://leetcode.com/problems/bitwise-and-of-numbers-range/description
Bitwise AND for [left..right].
Bitwise AND for [left..right].
👍2🤔1
https://leetcode.com/problems/find-the-town-judge/description/
Find who trusts nobody and everybody trusts him in
Find who trusts nobody and everybody trusts him in
[trust, trusted]
array.👍2
https://leetcode.com/problems/cheapest-flights-within-k-stops/description/
Cheapest travel
Cheapest travel
src -> dst
with at most k
stops in a directed weighted graph.👍2