Relative Ranks – Leetcode #506

Problem Statement This problem is from Leetcode – Relative Ranks. The problem statement in short is given below: Given an array of unique athlete scores, assign ranks where the top three receive “Gold Medal”, “Silver Medal”, “Bronze Medal”, and others receive their numeric rank. Return ranks in original order. Solution To solve the problem of […]

Reverse Integer – Leetcode #7

Problem Statement This problem is from Leetcode – Reverse Integer. The problem statement in short is given below: Given a signed 32-bit integer x, return its digits reversed. If the reversed integer overflows the 32-bit signed integer range, return 0. Solution Approach – 1 We need to extract individual numbers out of the given input […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top