Given an m x n grid of characters board and a string word, return true if word exists in the grid. The wo…
My memo and playground
Given an m x n grid of characters board and a string word, return true if word exists in the grid. The wo…
There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings. You are giving candi…
There are n cities connected by some number of flights. You are given an array flights where flights[i] = [fromi, toi, pricei…
You are a hiker preparing for an upcoming hike. You are given heights, a 2D array of size rows x columns, where heights[row][col] …
You are given a network of n nodes, labeled from 1 to n. You are also given times, a list of travel times as directed ed…
Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of…
A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or&…
According to Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the Brit…
You are given the heads of two sorted linked lists list1 and list2. Merge the two lists into one sorted list. The list should…
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of th…