986. Interval List Intersections
986. Interval List Intersections
Description
You are given two lists of closed intervals, firstList
and secondList
, where firstList[i] = [starti, endi] and secondList[j] = [startj, endj]. Each list of intervals is pairwise disjoint and in sorted order .
38. Count and Say
31. Next Permutation
3419. Minimize the Maximum Edge Weight of Graph
3419. Minimize the Maximum Edge Weight of Graph
Description
You are given two integers, n
and threshold
, as well as a directed weighted graph of n
nodes numbered from 0 to n - 1
. The graph is represented by a 2D integer array edges
, where edges[i] = [Ai, Bi, Wi] indicates that there is an edge going from node Ai to node Bi with weight Wi.
3418. Maximum Amount of Money Robot Can Earn
3418. Maximum Amount of Money Robot Can Earn
Description
You are given an m x n
grid. A robot starts at the top-left corner of the grid (0, 0)
and wants to reach the bottom-right corner (m - 1, n - 1)
. The robot can move either right or down at any point in time.
3417. Zigzag Grid Traversal With Skip
3417. Zigzag Grid Traversal With Skip
Description
You are given an m x n
2D array grid
of positive integers.