Category: c / c++
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 …
Given strings a and b, and an integer k, return whether a can be converted to b by shifting some characters clockwise at most k times. For example, “c” …