289. Game of Life
Description
According to Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.”
According to Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.”
849. Maximize Distance to Closest Person
You are given an array representing a row of seats
where seats[i] = 1
represents a person sitting in the i^th
seat, and seats[i] = 0
represents that the i^th
seat is empty (0-indexed) .
926. Flip String to Monotone Increasing
A binary string is monotone increasing if it consists of some number of 0
‘s (possibly none), followed by some number of 1
‘s (also possibly none).
1383. Maximum Performance of a Team
You are given two integers n
and k
and two integer arrays speed
and efficiency
both of length n
. There are n
engineers numbered from 1
to n
. speed[i]
and efficiency[i]
represent the speed and efficiency of the i^th
engineer respectively.
2065. Maximum Path Quality of a Graph
There is an undirected graph with n
nodes numbered from 0
to n - 1
(inclusive ). You are given a 0-indexed integer array values
where values[i]
is the value of the i^th
node. You are also given a 0-indexed 2D integer array edges
, where each edges[j] = [u<sub>j</sub>, v<sub>j</sub>, time<sub>j</sub>]
indicates that there is an undirected edge between the nodes u<sub>j</sub>
and v<sub>j</sub>
, and it takes time<sub>j</sub>
seconds to travel between the two nodes. Finally, you are given an integer maxTime
.
1730. Shortest Path to Get Food
You are starving and you want to eat food as quickly as possible. You want to find the shortest path to arrive at any food cell.
1152. Analyze User Website Visit Pattern
You are given two string arrays username
and website
and an integer array timestamp
. All the given arrays are of the same length and the tuple [username[i], website[i], timestamp[i]]
indicates that the user username[i]
visited the website website[i]
at time timestamp[i]
.