CodeMagicX Logo
๐Ÿ“‹
Study Plans1 live ยท 4 coming soon
JS
30 Days of
JavaScript
30d 30
CSS
CSS Visual
Arena
10d 100
Coming Soon
Java
30 Days of
Java
30d 30
Coming Soon
JS++
10 Days of
Advanced JS
10d 10
Coming Soon
Java
10 Days of
Advanced Java
10d 10
Coming Soon
Syncing with World Clock...

Browse Topics

Filter challenges by technology & concept

All 256 Challenges

0 Solved

#1Vital Assignment

Master parameters and basic arithmetic in a high-stakes scenario.

Easy +10 XP98.5% Accepted

#2Dynamic Messaging

Learn to combine parameters and text into dynamic terminal messages.

Easy +15 XP96.2% Accepted

#3The Comma Trick

Learn to use console.log() to print multiple values clearly without concatenation.

Easy +15 XP94.8% Accepted

#4Value Reversal

Swap the contents of two variables using a temporary container.

Easy +20 XP92.1% Accepted

#5Precision Area

Use constants for fixed mathematical values and solve geometric formulas with precision.

Easy +20 XP95.4% Accepted

#6Operation Hierarchy

Master the order of operations to solve complex arithmetic expressions.

Easy +25 XP88.4% Accepted

#7Equality Comparisons

Understand the difference between loose (==) and strict (===) equality.

Easy +25 XP91.7% Accepted

#8The AND Operator

Combine multiple conditions using the logical AND (&&) operator.

Easy +30 XP94.2% Accepted

#9Modulo Division

Learn to find the remainder of a division using the modulo (%) operator.

Easy +25 XP96.8% Accepted

#10Compound Assignment

Use the += operator to update variables efficiently.

Easy +25 XP93.5% Accepted

#11The NOT Operator

Use the Logical NOT (!) operator to flip boolean states.

Easy +25 XP95.1% Accepted

#12Postfix Increment

Master the result of a postfix increment operation.

Easy +20 XP92.4% Accepted

#13Prefix Increment

Observe how prefix increments update the value before use.

Easy +20 XP94.8% Accepted

#14Exponentiation

Use the exponentiation (**) operator to calculate cube volumes.

Easy +25 XP96.2% Accepted

#15Type Validation

Use typeof to verify data integrity before processing.

Easy +20 XP97.4% Accepted

#16Temporal Extraction

Deconstruct total seconds into minutes and remainders.

Medium +30 XP89.2% Accepted

#17Numeric Coercion

Convert numeric strings into numbers using the unary plus operator.

Easy +20 XP95.6% Accepted

#18Integer Verification

Distinguish between whole numbers and floating-points.

Easy +20 XP98.1% Accepted

#19Planetary Weight

Use constant variables to calculate weight on different worlds.

Easy +20 XP93.7% Accepted

#20The Uncharted Void

Master the two fundamental "empty" types in JavaScript.

Easy +15 XP96.4% Accepted

#21Shorthand Surge

Learn to declare multiple variables in a single line for cleaner code.

Easy +20 XP99.1% Accepted

#22The OR Operator

Use logical OR (||) for fallback settings.

Easy +25 XP95.2% Accepted

#23Nullish Coalescing

Use ?? for safer fallbacks that preserve falsy but valid values.

Easy +30 XP92.7% Accepted

#24The Master XOR

Simulate the XOR (Exclusive OR) logical operation using only standard operators.

Medium +40 XP72.4% Accepted

#25Truthiness Counter

Count how many values in a set are considered "truthy" using coercion.

Medium +45 XP68.1% Accepted

#26Strictly Nullish

Identify strictly nullish values while ignoring other falsy values.

Medium +40 XP75.3% Accepted

#27Short-Circuit Chain

Build a multi-level fallback chain using logical operator short-circuiting.

Medium +35 XP82.9% Accepted

#28Safe Number Validator

Create a robust validator to identify "real" numbers in a sea of dynamic types.

Hard +50 XP58.7% Accepted

#29Zero-Logic Toggle

Switch between two states (0 and 1) using pure arithmetic without any conditions.

Medium +35 XP85.4% Accepted

#30The Coercion Trap

Detect when two values would result in an "equality trap" between == and ===.

Hard +50 XP62.3% Accepted

#31Boolean Equality

Determine if two values of completely different types resolve to the same boolean truthiness.

Hard +45 XP70.8% Accepted

#32De Morgan's Revenge

Simplify and solve complex negative boundary logic across multiple variables.

Hard +55 XP54.2% Accepted

#33The NaN Guardian

Safely handle arithmetic failures and return controlled fallbacks.

Hard +55 XP51.3% Accepted

#34The Signed Zero Identity

Detect the difference between positive and negative zero using mathematical limits.

Hard +60 XP42.1% Accepted

#35Truthiness Normalizer

Convert any arbitrary value into a binary 1 or 0 based on its truthiness.

Medium +40 XP78.4% Accepted

#36Type Integrity Guard

Build a robust type guard for checking non-empty string values.

Medium +45 XP71.2% Accepted

#37Bitwise Parity

Check if a number is even or odd using bitwise logic for maximum efficiency.

Hard +55 XP48.9% Accepted

#38Power of Two Guard

Identify powers of two using bitwise arithmeticโ€”the ultimate performance trick.

Hard +65 XP35.4% Accepted

#39Precision Threshold

Handle floating-point errors by using a precision threshold (epsilon) for comparisons.

Hard +55 XP56.7% Accepted

#40The Universal Fallback

Create a "Super Guard" that catches null, undefined, and NaN in a single logical chain.

Hard +60 XP45.1% Accepted

#41Integer Extraction

Use the parseInt() function to explicitly convert string data into integers.

Easy +15 XP97.2% Accepted

#42Corrupted Scans

Learn why NaN is a unique special value that is not equal to itself.

Easy +25 XP91.4% Accepted

#44The Heat Sensor

Build a critical alert system that only triggers when the heat levels rise.

Easy +15 XP98.5% Accepted

#45The Sky Guard

Handle the two destinies of any traveler: the umbrella or the sunshine.

Easy +15 XP97.8% Accepted

#46The Rank Master

Judge the merit of the students and assign their definitive letter grade.

Easy +20 XP95.4% Accepted

#47Gatekeeper's Vault

Guard the high palace with a two-layered verification check.

Easy +20 XP94.1% Accepted

#48The Chronos Dial

Use the magical dial of the Chronos gate to jump to specific days in time.

Easy +15 XP96.5% Accepted

#49The Continental Guard

Use the Logical OR operator to simplify checking multiple valid states at the border.

Easy +20 XP94.8% Accepted

#50The VIP Gate

Use the Logical AND operator to ensure multiple conditions are perfectly met before entry.

Easy +20 XP93.5% Accepted

#51The Quarter Master

Learn to group multiple switch cases together to share the same code logic.

Easy +15 XP95.9% Accepted

#52The Gilded Entrance

Master the most concise way to write an if-else statement using the Ternary Operator.

Easy +20 XP96.2% Accepted

#53The Adventurer's Rank

Sequence your range checks to determine where a traveler stands in the tiers of power.

Easy +15 XP97.1% Accepted

#54The Olympic Oracle

Chain multiple ternary operators together to decide the fate of the three podium positions.

Medium +25 XP88.4% Accepted

#55The Cryptic Threshold

Use layered validation checks to determine who may enter the restricted sanctuary.

Easy +20 XP92.7% Accepted

#56The Signal Decoder

Decode numeric signals into human-readable messages using a switch statement.

Easy +15 XP96.1% Accepted

#57The Ghost Signal

Use the Logical AND operator for an extremely concise conditional that only speaks when summoned.

Medium +20 XP90.2% Accepted

#58The Void Scanner

Distinguish between different types of "nothingness" using a precise if-else if ladder.

Medium +20 XP91.4% Accepted

#59The Domino Effect

Harness the gravity of the switch statement to trigger a chain reaction of messages.

Medium +15 XP89.7% Accepted

#60The Vault Entrance

Use string properties to determine if a secret code is strong enough to enter the vault.

Easy +15 XP98.1% Accepted

#61The Type-Safe Gate

Combine type checking and range validation to guard the sanctum from invalid data.

Medium +25 XP91.2% Accepted

#62The Parity Pendulum

Use the Modulo operator and a Ternary to instantly categorize any number.

Easy +15 XP97.4% Accepted

#63The Number Neutralizer

Perfectly categorize numbers into three logical zones: Positive, Negative, or Zero.

Easy +15 XP98.8% Accepted

#64The Overlap Detector

Detect if two time intervals collide in a 1D space.

Medium +30 XP86.5% Accepted

#65The Triangle Oracle

Validate the laws of geometry and classify three sides into a triangle type.

Medium +30 XP82.1% Accepted

#66The Leap Year Sentinel

Implement the precise Gregorian calendar rules to identify leap years.

Medium +30 XP88.9% Accepted

#67The Chronos Converter

Convert 24-hour time strings into a human-friendly AM/PM format.

Medium +30 XP84.2% Accepted

#68The Royal Taxation

Navigate the complex brackets of the kings treasury to calculate progressive taxes.

Hard +40 XP78.5% Accepted

#69The Quadrant Navigator

Map a point in the 2D plane to its specific quadrant or axis.

Medium +30 XP92.4% Accepted

#70The ATM Alchemist

Solve the riddle of the perfect dispensation: can you provide exactly X dollars using only $20 and $50 bills?

Hard +40 XP72.1% Accepted

#71The RPS Champion

Determine the winner of a Rock-Paper-Scissors duel using efficient decision paths.

Medium +30 XP94.5% Accepted

#72The Permission Matrix

Evaluate a series of security flags and roles to determine if a secret file can be edited.

Hard +40 XP81.4% Accepted

#73The Ternary Fizz

Implement the legendary FizzBuzz logic using strictly a single nested ternary expression.

Hard +40 XP75.9% Accepted

#74The Defiant Guardian

The do-while loop is a stubborn machine that insists on running at least once, no matter the obstacles.

Easy +15 XP98.9% Accepted

#75The Iteration Echo

Enforce a specific number of iterations using the do-while loop.

Easy +15 XP97.5% Accepted

#76The Even Pulse

Use a while loop to filter and print the heartbeat of even numbers.

Easy +15 XP98.2% Accepted

#77The Power Ascendant

Use a while loop to find the smallest power of 2 that surpasses a specific limit.

Easy +20 XP96.4% Accepted

#78The Countdown Clock

Daily

Master the reverse iteration of a standard for loop to launch the logical rocket.

Easy ... +15 XP98.7% Accepted

#79The Prime Breaker

Use the break statement to stop your search the moment a secret is revealed.

Easy +20 XP93.1% Accepted

#80The Digit Dissolver

Dismantle a number digit by digit to find its secret mathematical sum.

Easy +20 XP95.6% Accepted

#81The Triple Leap

Customize the step expression of your for loop to leap across the numeric timeline.

Easy +15 XP98.1% Accepted

#82The Grid Architect

Master the power of nested iteration to conceptually map out a coordinate system.

Easy +20 XP94.2% Accepted

#83The Table Weaver

Use nested while loops to generate a segment of the sacred multiplication table.

Easy +20 XP91.8% Accepted

#84The Lone Pair

Use a break statement to stop an inner loop as soon as the first matching pair is found.

Medium +30 XP87.4% Accepted

#85The Forbidden Zone

Use the continue statement to skip the diagonal coordinates in a coordinate plane.

Medium +30 XP89.1% Accepted

#86The Divisibility Scanner

Use nested loops to identify which numbers in a range are divisible by 2 or 3.

Medium +30 XP91.4% Accepted

#87The Factorial Forge

Calculate the factorial of a number using iterative logic. The engine of growth starts here.

Easy +20 XP95.2% Accepted

#88The Fibonacci Sequence

Generate the famous sequence where each number is the sum of the two preceding ones.

Easy +20 XP94.1% Accepted

#89The Prime Sentinel

Implement a highly efficient primality test to guard the gates of truth.

Medium +25 XP89.5% Accepted

#90The Perfect Number

Search for numbers that equal the sum of their own proper divisors.

Medium +25 XP91.2% Accepted

#91The Armstrong Ascent

Check if a number is narcissisticโ€”equaling the sum of its own digits raised to a power.

Medium +25 XP88.7% Accepted

#92The Binary Converter

Translate decimal integers into the sacred language of machines.

Medium +30 XP92.4% Accepted

#93The Digit Reverser

Flip a number inside out using purely mathematical operations. No strings attached.

Easy +20 XP96.1% Accepted

#94The GCD Navigator

Find the greatest common factor between two numbers using the ancient Euclidean path.

Medium +25 XP90.3% Accepted

#95The LCM Link

Calculate the least common multiple of two numbers using their hidden GCD link.

Medium +25 XP91.7% Accepted

#96The Collatz Conjecture

Trace the chaotic path of a number until it inevitably crashes back to unity.

Medium +30 XP87.4% Accepted

#97The Square Root Estimator

Calculate the integer square root of a number using iterative approximation.

Medium +30 XP86.1% Accepted

#98The Harshad Hunter

Detect if a number is divisible by the sum of its own digits.

Easy +15 XP95.8% Accepted

#99The Prime Factorizer

Deconstruct a number into its prime components, the building blocks of math.

Medium +30 XP88.4% Accepted

#100The Happy Number

Determine if a number belongs to the joyous group of integers that settles at 1.

Medium +30 XP85.9% Accepted

#101The Power Function

Calculate X raised to the power of Y using repeated multiplication.

Easy +20 XP93.7% Accepted

#102The Arithmetic Check

Determine if a series of outputs follows a consistent arithmetic jump.

Easy +15 XP96.2% Accepted

#103The Geometric Check

Verify the exponential growth of a geometric sequence.

Easy +15 XP95.1% Accepted

#104The Trailing Zeros

Count the number of trailing zeros in a factorial result without calculating the massive number.

Medium +25 XP88.2% Accepted

#105The Divisor Count

Calculate the total number of divisors for a given integer.

Easy +15 XP97.4% Accepted

#106The Lucky Seven

Count how many times the digit 7 appears in a specific number.

Easy +15 XP98.1% Accepted

#107The Lucas Link

Generate the Lucas sequence, a cousin of Fibonacci starting with 2 and 1.

Medium +25 XP93.4% Accepted

#108The Tribonacci Pulse

Step up the complexity by tracking three sequences at once.

Medium +25 XP91.8% Accepted

#109The Digit Persistence

Find how many steps it takes to reduce a number to a single digit by multiplying its components.

Medium +30 XP86.4% Accepted

#110The Automorphic Aura

Detect numbers whose square ends with the same digits as the number itself.

Medium +25 XP91.1% Accepted

#111The Strong Number

Identify numbers equaling the sum of the factorials of their digits.

Medium +30 XP87.9% Accepted

#112The Goldbach Conjecture

Test one of the oldest unsolved problems: can every even number be the sum of two primes?

Medium +35 XP82.4% Accepted

#113The Sieve of Eratosthenes

Efficiently filter out the non-primes in a range using the ancient sieve method.

Hard +40 XP78.1% Accepted

#114The Catalan Calculator

Compute the N-th Catalan number, a fundamental constant in counting permutations.

Hard +40 XP75.6% Accepted

#115The Kaprekar Routine

Step into the persistence of 6174, the constant that pulls all 4-digit numbers into its orbit.

Hard +45 XP72.3% Accepted

#116The Ramanujan Search

Discover a Taxicab number: the sum of two cubes in two different ways.

Hard +45 XP70.8% Accepted

#117The Russian Peasant

Multiply large numbers using only doubling, halving, and addition.

Medium +30 XP89.2% Accepted

#118The Division via Subtraction

Simulate division by repeatedly subtracting the divisor from the target.

Easy +15 XP96.4% Accepted

#119The Abundant Number

Find the numbers whose sum of proper divisors overflows their own value.

Medium +20 XP94.2% Accepted

#120The Deficient Number

Detect numbers whose internal divisors fall short of their own value.

Easy +15 XP96.8% Accepted

#121The Smith Number

Compare the sum of a composite numbers digits with the digits of its prime factors.

Hard +40 XP79.2% Accepted

#122The Ulam Sequence

Generate numbers that can be expressed as the sum of two distinct earlier terms in exactly one way.

Hard +45 XP73.1% Accepted

#123The Lucky Survivor

Survive the iterative sieve process to become a Lucky Number.

Hard +45 XP71.4% Accepted

#124The Emirp Sentinel

Detect primes that, when reversed, reveal a different prime number.

Medium +30 XP86.1% Accepted

#125The Circular Prime

Verify primes that remain prime through every possible cyclic rotation of their digits.

Hard +40 XP80.4% Accepted

#126The Pronic Navigator

Detect numbers that are the product of two consecutive integers.

Easy +15 XP97.2% Accepted

#127The Hamming Weight

Count the number of active bits (set bits) in a numbers binary representation.

Medium +25 XP92.4% Accepted

#128The Pascal Architect

Generate a specific row of Pascalโ€™s Triangle using purely iterative logic.

Medium +30 XP88.7% Accepted

#129The Floyd Triangle

Weave a triangle of increasing natural numbers.

Easy +15 XP95.9% Accepted

#130The Vampire Hunt

Detect a Vampire Number: a composite number with two fangs containing exactly the same digits.

Hard +45 XP70.1% Accepted

#131The Goldbach Triple

Solve for the triple prime sum: every odd number greater than 5 is the sum of three primes.

Hard +45 XP76.4% Accepted

#132The Abundant Range

Scan a numeric range and count how many abundant numbers lie within.

Medium +30 XP92.1% Accepted

#133The Root Convergence

Track how many iterations it takes to converge on a square root using a specific accuracy limit.

Hard +40 XP81.7% Accepted

#134The Palindrome Sum

Repeatedly add a number to its reverse until a palindromic state is achieved.

Medium +30 XP89.4% Accepted

#135The Magic Constant

Weekly

Calculate the magic sum of a standard N x N magic square.

Easy ... +20 XP98.5% Accepted

#136The Peak of Chaos

Scan a range to find the number that produces the longest Collatz sequence.

Hard +45 XP79.1% Accepted

#137Hollow Square Architect

Construct the perimeter of a square without filling the center.

Medium +30 XP88.4% Accepted

#138The X-Factor Grid

Draw a cross (X) within a square grid using diagonal logic.

Medium +30 XP85.2% Accepted

#139The Diamond Loom

Weave a perfectly symmetrical diamond using spaces and stars.

Hard +40 XP78.1% Accepted

#140The Checkerboard Pulse

Generate an alternating binary grid (0 and 1) representing a checkerboard.

Easy +15 XP96.2% Accepted

#141Floyd's Pyramid

Build a centered triangular pyramid of consecutive natural numbers.

Medium +25 XP91.4% Accepted

#142The Hourglass Pattern

Trace the passage of time with a symmetrical hourglass of stars.

Medium +30 XP87.6% Accepted

#143The Spiral Sum

Sum all numbers on the diagonal path of a spiral-filled N x N matrix.

Hard +40 XP75.2% Accepted

#147Euler's Totient

Count the number of positive integers up to N that are relatively prime to N.

Hard +45 XP72.4% Accepted

#148The Primorial Power

Calculate the product of the first N prime numbers.

Medium +30 XP89.7% Accepted

#149Stern's Diatomic

Investigate the additive logic of Sternโ€™s sequence.

Hard +45 XP71.6% Accepted

#150Recaman's Sequence

Jump forward and backward across the number line while avoiding visited territory.

Hard +45 XP70.8% Accepted

#151The Padovan Pulse

Calculate the Padovan sequence: a sequence defined by a three-back sum.

Medium +25 XP92.4% Accepted

#152The Gray Code Pulse

Convert a standard integer into its reflected binary Gray code.

Hard +40 XP81.3% Accepted

#153Sylvester's Sequence

Investigate one of the fastest growing sequences in mathematics.

Hard +45 XP68.4% Accepted

#154The Farey Sequence

Generate irreducible fractions between 0 and 1 using the Farey property.

Hard +45 XP75.6% Accepted

#155The Partition Count

Count how many ways a number can be formed by the sum of smaller integers.

Hard +45 XP71.2% Accepted

#156The Great Prime Gap

Find the largest distance between two consecutive primes within a range.

Medium +30 XP93.1% Accepted

#157The Score Summation

Use a loop to iterate through a list of scores and calculate the total.

Easy +15 XP98.5% Accepted

#158The Daily Average

Calculate the average of a list of numeric values.

Easy +20 XP94.2% Accepted

#159The Peak Score

Identify the highest value in a dataset using a comparison loop.

Medium +25 XP91.8% Accepted

#160The Zero Floor

Find the minimum value in a dataset.

Medium +25 XP92.1% Accepted

#161Frequency Pulse

Count how many times a specific target value appears in a datasetโ€”from numbers to fruit names.

Medium +30 XP88.4% Accepted

#162Even/Odd Score Split

Count the number of even and odd values in an array.

Easy +20 XP95.6% Accepted

#163The Target Search

Find the first index where a target value appears.

Easy +15 XP97.4% Accepted

#164Reverse Accumulator

Iterate through an array from last to first and collect values.

Medium +25 XP90.2% Accepted

#165The Multiplier Effect

Calculate the product of all numbers in an array.

Easy +15 XP96.8% Accepted

#166The Neighbor Difference

Calculate the sum of differences between consecutive elements.

Hard +40 XP78.5% Accepted

#167The Spike Locator

Detect local maxima: elements that are strictly greater than both their neighbors.

Hard +45 XP72.1% Accepted

#168Range Check

Verify if all elements fall within a specific numeric range.

Medium +25 XP93.4% Accepted

#169First & Last

Retrieve the first and last elements of an array and calculate their sum.

Easy +15 XP98.9% Accepted

#170Skip Iteration

Iterate through an array using a step factor (sum every Nth element).

Medium +25 XP91.2% Accepted

#171Threshold Filter

Count how many values in the array are strictly greater than a threshold.

Medium +25 XP94.5% Accepted

#172The Alternator

Iteratively combine elements using alternating addition and subtraction.

Hard +40 XP76.4% Accepted

#173Peak Season

Find the index of the highest value in an array.

Medium +30 XP89.1% Accepted

#174Value Scaling

Print every value in an array multiplied by a scalar factor.

Easy +15 XP98.2% Accepted

#175The Unique Sieve

Detect duplicates by comparing each element against all elements that came before it.

Hard +50 XP68.5% Accepted

#176The Merger Sum

Sum all elements across two separate arrays.

Medium +25 XP92.6% Accepted

#177The Lost Coordinate

Find the single missing number in a sequence from 0 to N.

Medium +35 XP92.4% Accepted

#178The Phantom Duplicate

Find the duplicate number in an array containing numbers from 1 to N-1.

Medium +35 XP91.8% Accepted

#179The Silver Medal

Identify the second largest number in an array without sorting it.

Hard +40 XP85.4% Accepted

#180Majority Vote

Find the element that appears more than N/2 times in an array.

Hard +45 XP75.3% Accepted

#181Equilibrium Point

Find the index where the sum of elements on the left equals the sum of elements on the right.

Hard +45 XP72.8% Accepted

#182The Stock Broker

Calculate the maximum profit possible from a single buy and sell operation.

Hard +45 XP78.2% Accepted

#183Consecutive Streak

Identify the longest continuous sequence of 1s in a binary array.

Medium +30 XP93.5% Accepted

#184Rotation Pulse

Rotate an array to the right by K steps.

Hard +40 XP82.7% Accepted

#185The Zero Migrator

Relocate all zeros in an array to the end while maintaining the relative order of other elements.

Medium +30 XP89.4% Accepted

#186Order Audit

Determine if an array is sorted in non-decreasing order.

Easy +15 XP98.1% Accepted

#187Clean Slate

Remove duplicates from a sorted array in-place.

Hard +40 XP81.4% Accepted

#188The Lone Survivor

Find the one number that doesnโ€™t have a pair in an array where every other item repeats twice.

Hard +50 XP68.9% Accepted

#189The Pair Seeker

Find two indices in an array that sum up to a specific target.

Medium +35 XP90.1% Accepted

#190Intersection Point

Find common elements between two arrays.

Medium +35 XP88.2% Accepted

#191The Union Set

Collect all unique elements from two arrays.

Medium +30 XP91.4% Accepted

#192Pascal's Row

Calculate a specific row in Pascalโ€™s Triangle.

Hard +45 XP75.6% Accepted

#193Minimum Gap

Find the minimum absolute difference between any two elements in an array.

Medium +35 XP89.4% Accepted

#194Peak Product

Find the maximum product of a contiguous subarray.

Hard +50 XP64.2% Accepted

#195The Summit Element

Find an element that is strictly greater than its immediate neighbors.

Medium +35 XP92.1% Accepted

#196Pair Matching Registry

Count how many unique pairs of elements sum up to a specific target.

Medium +35 XP89.7% Accepted

#197The Duplicate Echo

Determine if any element repeats in an array using nested loops.

Medium +30 XP92.5% Accepted

#198The Manual Pivot

Perform a left rotation by shifting every element manually using nested loops.

Hard +45 XP79.2% Accepted

#199Identity Crisis

Determine if two arrays are strictly identical in length and content.

Medium +35 XP91.4% Accepted

#200The Master Frequency Map

The Final Milestone: Count all occurrences in an array using a single-pass Object map.

Hard +100 XP58.4% Accepted

#201Container With Most Water

Find two vertical lines that together with the x-axis form a container containing the most water.

Hard +50 XP72.4% Accepted

#202Valid Palindrome

Check if an array is a palindrome (reads same forwards and backwards).

Easy +15 XP96.2% Accepted

#203Reverse Vowels in Array

Reverse only the vowels in an array of characters.

Easy +15 XP92.1% Accepted

#204Maximum Sum Subarray (Fixed)

Find the maximum sum of any contiguous subarray of size K.

Medium +30 XP92.4% Accepted

#205Smallest Subarray for Sum

Find the minimum length of a contiguous subarray whose sum is greater than or equal to a target.

Hard +45 XP82.6% Accepted

#206Product Except Self

Calculate products of all elements except the current one without using division.

Hard +45 XP84.4% Accepted

#207The Triple Seeker

Find all unique triplets in an array that sum to zero.

Hard +50 XP68.5% Accepted

#208Consecutive Ones III

Find the maximum longest consecutive sequence of 1s if you can flip at most K zeros.

Hard +45 XP81.4% Accepted

#209Subarray Product Threshold

Count all contiguous subarrays where the product of elements is strictly less than K.

Hard +50 XP75.2% Accepted

#210Trapping Rain Water

Calculate how much water the elevation map can trap after raining.

Hard +100 XP48.2% Accepted

#211Matrix Summation

Sum all elements in a 2D array (Matrix).

Easy +15 XP98.5% Accepted

#212Transpose Matrix

Flip a matrix over its main diagonal, switching row and column indices.

Medium +25 XP94.1% Accepted

#213Spiral Matrix I

Traverse an M x N matrix in a spiral order.

Hard +50 XP68.2% Accepted

#214Rotate Image

Rotate an N x N matrix 90 degrees clockwise in-place.

Hard +50 XP72.1% Accepted

#215Set Matrix Zeroes

If an element in an M x N matrix is 0, set its entire row and column to 0.

Hard +40 XP84.6% Accepted

#216Search in 2D Matrix

Search for a target value in an M x N matrix with sorted rows.

Medium +35 XP90.2% Accepted

#217Diagonal Traverse

Traverse an M x N matrix in a diagonal order.

Hard +45 XP78.5% Accepted

#218The Matrix Reshaper

Reshape an M x N matrix into a new R x C matrix.

Easy +20 XP95.4% Accepted

#219Toeplitz Matrix

Verify if every diagonal from top-left to bottom-right has identical elements.

Easy +15 XP96.2% Accepted

#220Lucky Numbers in Matrix

Find all "lucky" numbers: elements that are minimum in their row and maximum in their column.

Medium +30 XP92.1% Accepted

#221Find All Duplicates

Find all elements that appear twice in an array of size N containing values from 1 to N.

Hard +45 XP86.4% Accepted

#222Nearby Duplicates

Check if an array contains duplicate elements within distance K.

Medium +30 XP91.8% Accepted

#223The Anagram Archive

Group and categorize an array of strings by their anagram signatures.

Hard +50 XP72.1% Accepted

#224Consecutive Chain

Find the length of the longest consecutive elements sequence in an unsorted array.

Hard +50 XP64.5% Accepted

#225The Subset Audit

Verify if one array is a subset of another.

Easy +15 XP98.1% Accepted

#226First Missing Positive

Find the smallest positive integer (greater than 0) that is missing from an unsorted array.

Hard +100 XP42.1% Accepted

#229Subarray Sum Pulse

Count the total number of contiguous subarrays whose sum equals K.

Hard +50 XP72.4% Accepted

#232The Dutch Flag Sort

Sort an array of 0s, 1s, and 2s in a single pass without using a sorting library.

Hard +45 XP84.6% Accepted

#233The Merge Foundry

Merge two sorted arrays into a single sorted array without using the sort() method.

Medium +30 XP92.1% Accepted

#236The Kth Selection

Find the Kth largest element in an unsorted array.

Hard +40 XP86.4% Accepted

#240Mountain Peak Index

Find the index of the peak element in a mountain array using Binary Search.

Medium +30 XP94.2% Accepted

#241Next Greater Element I

Find the first greater element to the right of each element in a subset.

Hard +45 XP82.1% Accepted

#243Kadane's Algorithm

Find the contiguous subarray with the largest sum in O(n) time.

Hard +50 XP75.3% Accepted

#250The Great Histogram

The 250th Milestone Case: Find the largest rectangle area in a histogram.

Hard +150 XP34.2% Accepted

#251The Stack Protocol (LIFO)

Implement basic Last-In-First-Out (LIFO) operations using a standard array.

Easy +15 XP98.5% Accepted

#252The Queue Protocol (FIFO)

Implement basic First-In-First-Out (FIFO) operations using a standard array.

Easy +15 XP97.2% Accepted

#253The Syntactic Shield

Determine if a string of brackets is valid using a stack.

Medium +30 XP91.4% Accepted

#254The Constant Min Stack

Design a stack that supports retrieving the minimum element in constant time O(1).

Medium +35 XP88.2% Accepted

#255The Circular Array

Implement a circular queue using manual pointers to reuse space in a fixed-size array.

Hard +50 XP78.4% Accepted

#257Sliding Window Maximum

Find the maximum in each sliding window of size K using an optimal monotonic queue.

Hard +60 XP62.4% Accepted

#260Asteroid Collision

Simulate asteroid collisions in space using a stack.

Medium +35 XP86.2% Accepted

#261Daily Temperatures

Find how many days you must wait for a warmer temperature using a monotonic stack.

Hard +45 XP84.6% Accepted

#262Backspace String Compare

Determine if two strings are equal after backspace (#) processing.

Easy +20 XP94.2% Accepted

#265Unix Path Simplifier

Convert a complex Unix file path into its canonical normalized form using a stack.

Hard +45 XP82.1% Accepted

#271The Bubble Up

Implement the Bubble Sort algorithm by repeatedly swapping adjacent elements.

Easy +15 XP98.1% Accepted

#272The Minimum Anchor

Implement Selection Sort by finding the minimum element and moving it to the front.

Easy +15 XP96.2% Accepted

#273The Playing Cards Sort

Implement Insertion Sort by building a sorted array one element at a time.

Easy +20 XP94.4% Accepted

#274Divide & Conquer: Quick Sort

Implement Quick Sort using pivot selection and recursive partitioning.

Hard +50 XP72.2% Accepted

#275Divide & Conquer: Merge Sort

Implement Merge Sort by splitting the array into halves, sorting them, and merging them back.

Hard +50 XP75.4% Accepted

#277Linear Velocity: Counting Sort

Sort an array of small integers in O(n + k) time by counting frequencies.

Hard +45 XP88.5% Accepted

#301The Cartographer: Adj Matrix

Convert an edge list into an adjacency matrix to represent a graph.

Easy +20 XP95.2% Accepted

#302The Signal Cascade (BFS)

Perform Breadth-First Search (BFS) starting from node 0 to explore the graph level by level.

Medium +35 XP91.4% Accepted

#303The Deep Dive (DFS)

Perform Depth-First Search (DFS) starting from node 0 to explore as far as possible along each branch.

Medium +35 XP90.2% Accepted

#310The Dijkstra Protocol

Find the shortest path from node 0 to all other nodes in a weighted graph.

Hard +100 XP58.4% Accepted

#315The Archipelago Count

Count the number of separate "islands" of 1s in a 2D binary grid.

Hard +50 XP82.1% Accepted

#326The Stealthy Thief

Determine the maximum amount of money you can rob without alerting the police by avoiding adjacent houses.

Medium +30 XP91.2% Accepted

#327The Infinite Climb

Find how many unique ways you can climb N stairs if you can take 1 or 2 steps at a time.

Easy +20 XP95.4% Accepted

#330The Common Thread (LCS)

Find the length of the longest common subsequence between two strings.

Hard +60 XP72.5% Accepted

#341The Semantic Split

Determine if a string can be segmented into a space-separated sequence of one or more dictionary words.

Hard +70 XP68.4% Accepted

#342The Change Machine

Find the fewest number of coins that you need to make up a specific total amount.

Hard +60 XP75.3% Accepted