Expedia

1 DSA problems asked in Expedia coding interviews

0 Easy
1 Medium
0 Hard
​

1 problem

Math
1
The kth Factor of n
Medium

You are given two positive integers n and k. A factor of n is an integer i with n % i == 0. List all factors of n in ascending order and return the kth one, or -1 if n has fewer than k factors.