Tag: c++
You are given a list of integers nums that used to be an arithmetic sequence. Given that a number was removed, and that the number was not the first …
Given a singly linked list node, remove nodes with duplicate values while maintaining relative order of the original list. Constraints n ≤ 100,000 where n is the number of …
Given a sorted list nums of size n, construct a binary search tree by Taking nums as the root where k = floor(n / 2). Recursively constructing the left …
You are given a two-dimensional list of integers intervals where each element is an inclusive interval . Return whether there’s an interval which contains another interval. Constraints n ≤ …
Given a binary tree root, return the maximum width of any level in the tree. The width of a level is the number of nodes that can fit between …