1701. Average Waiting Time
There is a restaurant with a single chef. You are given an array customers, where customers[i] = [arrivali, timei]: arrivali is the arrival […]
There is a restaurant with a single chef. You are given an array customers, where customers[i] = [arrivali, timei]: arrivali is the arrival […]
Given an array, arr of integers, and another number target, find three integers in the array such that their sum is closest to
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
Given a sorted (in ascending order) and rotated array arr of distinct elements which may be rotated at some point and given
There are numBottles water bottles that are initially full of water. You can exchange numExchange empty water bottles from the market with one full
Given a Binary Tree and an integer target. Find all the ancestors of the given target. Note: The ancestor of node x is node y, which is
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
Given a Binary Tree, complete the function to populate the next pointer for all nodes. The next pointer for 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 ==
Given a Binary Tree. You need to find and return the vertical width of the tree. Examples : Input: 1
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
Given a binary tree, your task is to find all duplicate subtrees from the given binary tree. Duplicate Subtree : Two