Zigzag Conversion – Leetcode #6

PROBLEM STATEMENT This problem is from Leetcode – Zigzag Conversion. The problem statement in short is given below: Write a string in a zigzag pattern on numRows rows, then read line-by-line to create a new string. SOLUTION FIRST APPROACH You can checkout he code from Github here: Zigzag conversion – First Approach. PERFORMANCE ANALYSIS COMPLEXITY […]

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 […]

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

Back To Top