1894. Find the Student that Will Replace the Chalk
There are n students in a class numbered from 0 to n – 1. The teacher will give each student a problem starting with the […]
There are n students in a class numbered from 0 to n – 1. The teacher will give each student a problem starting with the […]
You are given a 0-indexed 1-dimensional (1D) integer array original, and two integers, m and n. You are tasked with creating a 2-dimensional (2D) array with
Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence where each word is a valid dictionary
You are given an undirected weighted connected graph containing n nodes labeled from 0 to n – 1, and an integer array edges where edges[i] = [ai, bi, wi] indicates that there
On a 2D plane, we place n stones at some integer coordinate points. Each coordinate point may have at most one stone.
You are given two m x n binary matrices grid1 and grid2 containing only 0‘s (representing water) and 1‘s (representing land). An island is a group of 1‘s connected 4-directionally (horizontal or vertical).
You are given an undirected weighted graph of n nodes (0-indexed), represented by an edge list where edges[i] = [a, b] is an undirected
Given the root of an n-ary tree, return the postorder traversal of its nodes’ values. Nary-Tree input serialization is represented in their level
Given the root of a binary tree, return the postorder traversal of its nodes’ values. Example 1: Input: root = [1,null,2,3] Output: [3,2,1] Example
Given a string n representing an integer, return the closest integer (not including itself), which is a palindrome. If there is a tie,
Given a string expression representing an expression of fraction addition and subtraction, return the calculation result in string format. The final result
Given a Binary Tree, return Left view of it. Left view of a Binary Tree is set of nodes visible