Tag: c++
Given a list of integers nums, a string op representing either “+”, “-“, “/”, or “*”, and an integer val, perform the operation on every number in nums with …
Given a list of positive integers nums, return whether you can divide the list into two groups a and b such that: The sum of a and the sum …
Given a list of unique integers nums sorted in ascending order, return the minimum i such that nums == i. If there’s no solution, return -1. This should be …
Given a singly linked list node, return its length. The linked list has fields next and val. Constraints n ≤ 100,000 where n is the number of nodes in …
You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes = : numberOfBoxesi is the number of boxes …