Problem
Java
simple
© https://leetcode.com/problems/the-kth-factor-of-n/discuss/993800/Java-100-Fast-or-Easy-Solution
1 | class Solution { |
Submission Detail
- 207 / 207 test cases passed.
- Runtime: 1 ms, faster than 43.12% of Java online submissions for The kth Factor of n.
- Memory Usage: 35.5 MB, less than 90.14% of Java online submissions for The kth Factor of n.
Brute-force search
1 | import java.util.ArrayList; |
Submission Detail
- 207 / 207 test cases passed.
- Runtime: 1 ms, faster than 43.15% of Java online submissions for The kth Factor of n.
- Memory Usage: 35.8 MB, less than 48.68% of Java online submissions for The kth Factor of n.