Given an array A of integers, return true if and only if we can partition the array into three non-empty parts with equal sums. Formally, we can partition the …
We have an array A of integers, and an array queries of queries. For the i-th query val = queries, index = queries, we add val to A. Then, …
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list — …
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, …
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number is strobogrammatic. The …
Given an array of integers nums, write a method that returns the “pivot” index of this array. We define the pivot index as the index where the sum of …