Category: c / c++
You are given a set of two-dimensional rectangular boxes on a two-dimensional Cartesian plane with the following assumptions and constraints: All boxes are axis-aligned, i.e. each box can be …
You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the …
Given a binary tree root, return the sum of all node values whose grandparents have an even value. Constraints 0 ≤ n ≤ 100,000 where n is the number …
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 …