94. Binary Tree Inorder Traversal
Given the root of a binary tree, return the inorder traversal of its nodes’ values. Example 1: Input: root = [1,null,2,3] Output: [1,3,2] […]
Given the root of a binary tree, return the inorder traversal of its nodes’ values. Example 1: Input: root = [1,null,2,3] Output: [1,3,2] […]
A message containing letters from A-Z can be encoded into numbers using the following mapping: ‘A’ -> “1” ‘B’ -> “2” … ‘Z’ ->
Given a rows x cols binary matrix filled with 0‘s and 1‘s, find the largest rectangle containing only 1‘s and return its area. Example 1: Input: matrix =
There is a restaurant with a single chef. You are given an array customers, where customers[i] = [arrivali, timei]: arrivali is the arrival
There are n friends that are playing a game. The friends are sitting in a circle and are numbered from 1 to n in clockwise order. More
There are numBottles water bottles that are initially full of water. You can exchange numExchange empty water bottles from the market with one full
There are n people standing in a line labeled from 1 to n. The first person in the line is holding a pillow initially. Every
You are given the head of a linked list, which contains a series of integers separated by 0‘s. The beginning and end of the linked list will have Node.val ==
A critical point in a linked list is defined as either a local maxima or a local minima. A node is a local maxima if the current node has
You are given an integer array nums. In one move, you can choose one element of nums and change it to any value. Return the
Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as
Given an integer array arr, return true if there are three consecutive odd numbers in the array. Otherwise, return false. Example 1: Input: arr