LeetCode 1482.
Intuition I use dynamic programming on my first thought. It works but turns out to be TLE.
Intuition I use dynamic programming on my first thought. It works but turns out to be TLE.
Intuition a^2 + b^2 = c; (a >= 0 & b >= 0 & a,b,c are integers)
Intuition After sorting, every index number should become the nearest bigger number to current value
```java class Solution { public int findKthLargest(int[] nums, int k) { int[] result = mergeSort(0, nums.length-1, nums); return result[nums.length-...