1492. The kth Factor of n Leetcode Problem

Опубликовано: 15 Май 2026
на канале: print code
59
2

Problem link :https://leetcode.com/problems/the-kth...
1492. The kth Factor of n Leetcode Problem #leetcode #amazon
You are given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0.

Consider a list of all factors of n sorted in ascending order, return the kth factor in this list or return -1 if n has less than k factors.
#java #1492. The kth Factor of n #leetcode #interview #javadevelopment #topjava #javaprogramming #java #amazon #leetcode #leetcodechallenge #hackerranksolution #leetcodequestionandanswers #interviewbit #printcode
print code