GoLang: Range Sum Query on Immutable Array via Prefix Sum June 19, 2021 algorithms, Go Programming, math No Comments Given an integer array nums, handle multiple queries of the following type: Calculate the sum of the elements of nums between indices left and right inclusive where left [Continue Reading...]
Split a Set into Two with Equal Sums and Distinct Numbers January 6, 2021 algorithms, c / c++, math No Comments 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 … [Continue Reading...]