LinkedIn | Phone Screen | Two Sum III
4321
Mar 17, 2018
Aug 02, 2019
-
write a program to list factors of a given number
e.g. for 12, factors are 1, 2., 3, 4, 6, 12 -
https://leetcode.com/problems/two-sum-iii-data-structure-design (premium)
Implement below methods
//stores the number in some data structure
void store(n);
//tests whether the given number is present as sum of 2 numbers from the data structure store
boolean test(v);
e.g. store -> 1, 3, 5, 6
tests
4 = true (1 + 3)
5 = false (no sum will result into this)
6 = true (1 + 5)
Comments (7)


