A9 Interview Report
- 0of 0 votes
Answerswrite a function that takes two integers, k and n, with 0 ≤ k ≤ n, and prints out all subsets of size k of the integers 1, ..., n, one subset per line. The order of the subsets and the order of elements within the line doesn't matter.
- rs.firebolt April 27, 2015 in United States
example 1: print_subsets(k=1, n=2);
1
2
example: print_subsets(k=2, n=3);
3 1
2 3
1 2| Report Duplicate | Flag | PURGE
A9 Software Engineer / Developer - 1of 1 vote
AnswersGiven an unsorted array, find Kth smallest element in it.
- rs.firebolt April 27, 2015 in United States
A = 12, 3, 17, 0, 9, 6, 100
K = 3 -> 6| Report Duplicate | Flag | PURGE
A9 Software Engineer / Developer
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.