Picking Three Distinct Numbers Sum up to K March 13, 2021 algorithms, c / c++, math No Comments Given a list of integers nums and an integer k, determine if there are three distinct elements in the list that add up to k. Constraints n ≤ 1,000 … [Continue Reading...]
Two Pointer Algorithm to Count the Sum of Three Numbers Less than Target January 26, 2021 algorithms, c / c++, python, Two Pointer No Comments Given a list of integers nums and an integer target, return the number of triples i < j < k that exist such that nums + nums + nums … [Continue Reading...]