Published onMay 10, 2024Kth Smallest Prime Fraction Leetcode Solutionarraytwo-pointersbinary-searchsortingheapleetcodeYou are given a sorted integer array arr containing 1 and prime numbers....
Published onMay 8, 2024Relative Ranks Leetcode Solutionarraysortingheappriority-queueleetcodeYou are given an integer array score of size n, where score[i] is the score of the ith athlete in a competition. All the scores are guaranteed to be unique. Return an array answer of size n where answer[i] is the rank of the ith athlete.