MeetCode - Programming Platform | MeetCode - Programming Solutions Platform

Longest Palindromic Substring with Transformations

Get Detail

Maximum Subarray Sum with Constraints

Get Detail

Update running total

Get Detail

Count positives and negatives

Get Detail

Find min and max together

Get Detail

Swap without temp using arithmetic

Get Detail

Track best score with index

Get Detail

Sliding sum of size k

Get Detail

Balance tracker

Get Detail

Compute prefix min array

Get Detail

Variable scope demo (return value)

Get Detail

Count distinct in range queries (offline)

Get Detail

Event counter with rollback (savepoint idea)

Get Detail

Rate limiter counter

Get Detail

Compute max profit with two transactions

Get Detail

Reverse an array in-place

Get Detail

Count even numbers

Get Detail

Check array sorted (non-decreasing)

Get Detail

Find maximum element

Get Detail

Sum of array elements

Get Detail

Move zeros to end (stable)

Get Detail

Rotate right by k

Get Detail

Second largest distinct

Get Detail

Find missing number 1..n

Get Detail

Two sum in sorted array

Get Detail

Count subarrays with sum = k

Get Detail

Maximum product of any pair

Get Detail

Merge two sorted arrays into first

Get Detail

Longest consecutive sequence length

Get Detail

Range add queries (difference array)

Get Detail

Build a list from input values

Get Detail

Remove duplicates but keep order

Get Detail

Count frequency of numbers

Get Detail

Use Deque as stack

Get Detail

Queue simulation

Get Detail

First unique number in list

Get Detail

Top K frequent numbers

Get Detail

Group numbers by remainder

Get Detail

Sliding window max using deque

Get Detail

Sort objects by two fields

Get Detail

LRU cache (basic)

Get Detail

Detect cycle in directed graph

Get Detail

Merge intervals

Get Detail

K-way merge of sorted lists

Get Detail

Most common within window

Get Detail

Sum numbers divisible by 3

Get Detail

Count digits in a number

Get Detail

Reverse digits

Get Detail

Check leap year

Get Detail

Print star pattern count

Get Detail

FizzBuzz count

Get Detail

Nth Fibonacci (iterative)

Get Detail

GCD using Euclid

Get Detail

Find first prime >= n

Get Detail

Simulate simple ATM steps

Get Detail

Minimum steps to reach target (1 or 2)

Get Detail

Count paths in grid with obstacles

Get Detail

Validate parentheses string

Get Detail

Binary search first >= target

Get Detail

Max subarray sum (Kadane)

Get Detail

Check if value fits in byte

Get Detail

Convert char digit to int

Get Detail

Absolute difference as long

Get Detail

Check if string is numeric (no sign)

Get Detail

Parse binary string to int

Get Detail

Clamp value in range

Get Detail

Compare doubles with epsilon

Get Detail

Count set bits in int

Get Detail

Safe average without overflow

Get Detail

Detect overflow on add

Get Detail

Convert seconds to hh:mm:ss parts

Get Detail

Fast power (pow)

Get Detail

Encode two ints into one long

Get Detail

Compute checksum mod 1e9+7

Get Detail

Split integer into digits array

Get Detail

Safe divide

Get Detail

Validate positive input

Get Detail

Parse int with fallback

Get Detail

Array access safe read

Get Detail

Ensure object not null

Get Detail

Try-with-resources style (concept)

Get Detail

Custom exception for business rule

Get Detail

Validate age range

Get Detail

Convert checked to unchecked

Get Detail

Multiple validations with one throw

Get Detail

Transactional-like update with rollback

Get Detail

Retry operation 3 times

Get Detail

Validate sorted input or fail fast

Get Detail

Propagate cause chain

Get Detail

Fail-safe resource close with primary exception

Get Detail

Swap two elements

Get Detail

Copy array manually

Get Detail

Find first occurrence

Get Detail

Count occurrences

Get Detail

Find minimum value

Get Detail

Reverse a subrange

Get Detail

Remove element (new length)

Get Detail

Merge two arrays alternately

Get Detail

Prefix sum array

Get Detail

Find majority element (Boyer-Moore)

Get Detail

Find intersection of two arrays (unique)

Get Detail

Minimum window size for sum >= target

Get Detail

Rearrange array by sign (stable)

Get Detail

Count inversions (merge sort)

Get Detail

Product of array except self

Get Detail

Check if number is palindrome

Get Detail

Count vowels in char array

Get Detail

Check anagram (letters only)

Get Detail

Compute factorial

Get Detail

Check power of two

Get Detail

Implement lowerBound utility

Get Detail

String compression (count runs)

Get Detail

Find first non-repeating char

Get Detail

Validate IPv4 (basic)

Get Detail

LRU-like method using LinkedHashMap

Get Detail

Run-length decode

Get Detail

Evaluate postfix expression

Get Detail

KMP prefix table

Get Detail

Find median of two sorted arrays (merge approach)

Get Detail

Encapsulation with getter/setter

Get Detail

Constructor overloading

Get Detail

Method overriding basics

Get Detail

Interface usage

Get Detail

Immutable value object

Get Detail

Copy constructor and defensive copy

Get Detail

Comparable implementation

Get Detail

Factory method pattern

Get Detail

Composition over inheritance

Get Detail

Polymorphic billing

Get Detail

Strategy pattern for sorting key

Get Detail

Thread-safe counter (synchronized)

Get Detail

Deep clone object graph (simple)

Get Detail

Builder pattern (basic)

Get Detail

Equals/HashCode with inheritance (safe)

Get Detail

Bitwise AND of two numbers

Get Detail

Check odd using bit operator

Get Detail

Swap using XOR

Get Detail

Set k-th bit

Get Detail

Clear k-th bit

Get Detail

Toggle k-th bit

Get Detail

Extract lowest set bit

Get Detail

Count bits using Kernighan

Get Detail

Check if kth bit is set

Get Detail

Build mask between l..r

Get Detail

Reverse bits in 32-bit int

Get Detail

Find single number (others twice)

Get Detail

Find two single numbers

Get Detail

Subset check using bitmask

Get Detail

Compute parity bit

Get Detail

Swap two variables using temp

Get Detail

Increment and return

Get Detail