Course Schedule
You are given a total number of courses (n) and a list of prerequisites represented as pairs of course numbers.…
Master C, C++, Data Structures, Algorithms, Design Patterns, and More!
You are given a total number of courses (n) and a list of prerequisites represented as pairs of course numbers.…
You are given a 2D grid representing a Minesweeper game. You need to reveal the cells of the grid according…
You are given two 2D grids, grid1 and grid2, both representing islands, where grid1 represents the original island and grid2…
You are given a 2D grid representing a piece of farmland, where the value 1 represents cultivated land and 0…
You are given a 2D grid representing a house, with rooms labeled as 'INF' for empty rooms, -1 for walls,…
Given a 2D board containing 'X' (representing walls) and 'O' (representing open spaces), capture all regions surrounded by 'X'. A…
Given a 2D grid of '1's (land) and '0's (water), count the number of islands. An island is surrounded by…
Given an image represented by a 2D matrix of integers, an initial pixel, and a new color, implement the flood…
Given the root of a binary tree, return the average value of the nodes on each level of the tree.
Given the root of a binary tree, return the bottom-up level order traversal of its nodes' values. The bottom-up level…