Interactive Practice Portal
Master programming concepts by solving over 350+ structured problems in Python. View complexity mappings, dry runs, and compare naive vs optimal solutions, then run your code instantly.
Positive or Negative number
BasicsLearn how to solve the 'Positive or Negative number' problem. This detailed resource details brute force and optimized approaches.
Even or Odd number
BasicsLearn how to solve the 'Even or Odd number' problem. This detailed resource details brute force and optimized approaches.
Sum of First N Natural numbers
BasicsLearn how to solve the 'Sum of First N Natural numbers' problem. This detailed resource details brute force and optimized approaches.
Sum of N natural numbers
BasicsLearn how to solve the 'Sum of N natural numbers' problem. This detailed resource details brute force and optimized approaches.
Sum of numbers in a given range
BasicsLearn how to solve the 'Sum of numbers in a given range' problem. This detailed resource details brute force and optimized approaches.
Greatest of two numbers
BasicsLearn how to solve the 'Greatest of two numbers' problem. This detailed resource details brute force and optimized approaches.
Greatest of the Three numbers
BasicsLearn how to solve the 'Greatest of the Three numbers' problem. This detailed resource details brute force and optimized approaches.
Leap year or not
BasicsLearn how to solve the 'Leap year or not' problem. This detailed resource details brute force and optimized approaches.
Prime number
BasicsLearn how to solve the 'Prime number' problem. This detailed resource details brute force and optimized approaches.
Prime number within a given range
BasicsLearn how to solve the 'Prime number within a given range' problem. This detailed resource details brute force and optimized approaches.
Sum of digits of a number
BasicsLearn how to solve the 'Sum of digits of a number' problem. This detailed resource details brute force and optimized approaches.
Reverse of a number
BasicsLearn how to solve the 'Reverse of a number' problem. This detailed resource details brute force and optimized approaches.
Palindrome number
BasicsLearn how to solve the 'Palindrome number' problem. This detailed resource details brute force and optimized approaches.
Armstrong number
BasicsLearn how to solve the 'Armstrong number' problem. This detailed resource details brute force and optimized approaches.
Armstrong number in a given range
BasicsLearn how to solve the 'Armstrong number in a given range' problem. This detailed resource details brute force and optimized approaches.
Fibonacci Series upto nth term
BasicsLearn how to solve the 'Fibonacci Series upto nth term' problem. This detailed resource details brute force and optimized approaches.
Find the Nth Term of the Fibonacci Series
BasicsLearn how to solve the 'Find the Nth Term of the Fibonacci Series' problem. This detailed resource details brute force and optimized approaches.
Factorial of a number
BasicsLearn how to solve the 'Factorial of a number' problem. This detailed resource details brute force and optimized approaches.
Power of a number
BasicsLearn how to solve the 'Power of a number' problem. This detailed resource details brute force and optimized approaches.
Factor of a number
BasicsLearn how to solve the 'Factor of a number' problem. This detailed resource details brute force and optimized approaches.
Finding Prime Factors of a number
BasicsLearn how to solve the 'Finding Prime Factors of a number' problem. This detailed resource details brute force and optimized approaches.
Strong number
BasicsLearn how to solve the 'Strong number' problem. This detailed resource details brute force and optimized approaches.
Perfect number
BasicsLearn how to solve the 'Perfect number' problem. This detailed resource details brute force and optimized approaches.
Perfect Square
BasicsLearn how to solve the 'Perfect Square' problem. This detailed resource details brute force and optimized approaches.
Automorphic number
BasicsLearn how to solve the 'Automorphic number' problem. This detailed resource details brute force and optimized approaches.
Harshad number
BasicsLearn how to solve the 'Harshad number' problem. This detailed resource details brute force and optimized approaches.
Abundant number
BasicsLearn how to solve the 'Abundant number' problem. This detailed resource details brute force and optimized approaches.
Friendly pair
BasicsLearn how to solve the 'Friendly pair' problem. This detailed resource details brute force and optimized approaches.
Highest Common Factor(HCF)
NumbersLearn how to solve the 'Highest Common Factor(HCF)' problem. This detailed resource details brute force and optimized approaches.
Lowest Common Multiple (LCM)
NumbersLearn how to solve the 'Lowest Common Multiple (LCM)' problem. This detailed resource details brute force and optimized approaches.
Greatest Common Divisor
NumbersLearn how to solve the 'Greatest Common Divisor' problem. This detailed resource details brute force and optimized approaches.
Binary to Decimal conversion
NumbersLearn how to solve the 'Binary to Decimal conversion' problem. This detailed resource details brute force and optimized approaches.
Octal to Decimal conversion
NumbersLearn how to solve the 'Octal to Decimal conversion' problem. This detailed resource details brute force and optimized approaches.
Hexadecimal to Decimal conversion
NumbersLearn how to solve the 'Hexadecimal to Decimal conversion' problem. This detailed resource details brute force and optimized approaches.
Decimal to Binary conversion
NumbersLearn how to solve the 'Decimal to Binary conversion' problem. This detailed resource details brute force and optimized approaches.
Decimal to Octal Conversion
NumbersLearn how to solve the 'Decimal to Octal Conversion' problem. This detailed resource details brute force and optimized approaches.
Decimal to Hexadecimal Conversion
NumbersLearn how to solve the 'Decimal to Hexadecimal Conversion' problem. This detailed resource details brute force and optimized approaches.
Binary to Octal conversion
NumbersLearn how to solve the 'Binary to Octal conversion' problem. This detailed resource details brute force and optimized approaches.
Octal to Binary conversion
NumbersLearn how to solve the 'Octal to Binary conversion' problem. This detailed resource details brute force and optimized approaches.
Quadrants in which a given coordinate lies
NumbersLearn how to solve the 'Quadrants in which a given coordinate lies' problem. This detailed resource details brute force and optimized approaches.
Permutations in which n people can occupy r seats
NumbersLearn how to solve the 'Permutations in which n people can occupy r seats' problem. This detailed resource details brute force and optimized approaches.
Maximum number of handshakes
NumbersLearn how to solve the 'Maximum number of handshakes' problem. This detailed resource details brute force and optimized approaches.
Addition of two fractions
NumbersLearn how to solve the 'Addition of two fractions' problem. This detailed resource details brute force and optimized approaches.
Replace all 0’s with 1 in a given integer
NumbersLearn how to solve the 'Replace all 0’s with 1 in a given integer' problem. This detailed resource details brute force and optimized approaches.
Can a number be expressed as a sum of two prime numbers
NumbersLearn how to solve the 'Can a number be expressed as a sum of two prime numbers' problem. This detailed resource details brute force and optimized approaches.
Count possible decoding of a given digit sequence
NumbersLearn how to solve the 'Count possible decoding of a given digit sequence' problem. This detailed resource details brute force and optimized approaches.
Calculate the area of a circle
NumbersLearn how to solve the 'Calculate the area of a circle' problem. This detailed resource details brute force and optimized approaches.
Find the prime numbers between 1 to 100
NumbersLearn how to solve the 'Find the prime numbers between 1 to 100' problem. This detailed resource details brute force and optimized approaches.
Calculate the number of digits in an integer
NumbersLearn how to solve the 'Calculate the number of digits in an integer' problem. This detailed resource details brute force and optimized approaches.
Convert digit/number to words
NumbersLearn how to solve the 'Convert digit/number to words' problem. This detailed resource details brute force and optimized approaches.
Counting number of days in a given month of a year
NumbersLearn how to solve the 'Counting number of days in a given month of a year' problem. This detailed resource details brute force and optimized approaches.
Finding Number of times x digit occurs
NumbersLearn how to solve the 'Finding Number of times x digit occurs' problem. This detailed resource details brute force and optimized approaches.
Finding number of integers which has exactly x divisors
NumbersLearn how to solve the 'Finding number of integers which has exactly x divisors' problem. This detailed resource details brute force and optimized approaches.
Finding Roots of a quadratic equation
NumbersLearn how to solve the 'Finding Roots of a quadratic equation' problem. This detailed resource details brute force and optimized approaches.
Power of a Number using Recursion
RecursionLearn how to solve the 'Power of a Number using Recursion' problem. This detailed resource details brute force and optimized approaches.
Prime Number using Recursion
RecursionLearn how to solve the 'Prime Number using Recursion' problem. This detailed resource details brute force and optimized approaches.
Largest element in an array
RecursionLearn how to solve the 'Largest element in an array' problem. This detailed resource details brute force and optimized approaches.
Smallest element in an array
RecursionLearn how to solve the 'Smallest element in an array' problem. This detailed resource details brute force and optimized approaches.
Reversing a Number using Recursion
RecursionLearn how to solve the 'Reversing a Number using Recursion' problem. This detailed resource details brute force and optimized approaches.
HCF using Recursion
RecursionLearn how to solve the 'HCF using Recursion' problem. This detailed resource details brute force and optimized approaches.
LCM using Recursion
RecursionLearn how to solve the 'LCM using Recursion' problem. This detailed resource details brute force and optimized approaches.
Program to calculate length of string using recursion
RecursionLearn how to solve the 'Program to calculate length of string using recursion' problem. This detailed resource details brute force and optimized approaches.
Print All Permutations of a String
RecursionLearn how to solve the 'Print All Permutations of a String' problem. This detailed resource details brute force and optimized approaches.
F(N)th term recursion problem
RecursionLearn how to solve the 'F(N)th term recursion problem' problem. This detailed resource details brute force and optimized approaches.
Sum of all subsets
RecursionLearn how to solve the 'Sum of all subsets' problem. This detailed resource details brute force and optimized approaches.
Last non-zero digit in factorial
RecursionLearn how to solve the 'Last non-zero digit in factorial' problem. This detailed resource details brute force and optimized approaches.
Nth row of Pascal Triangle
RecursionLearn how to solve the 'Nth row of Pascal Triangle' problem. This detailed resource details brute force and optimized approaches.
Generate balanced parentheses
RecursionLearn how to solve the 'Generate balanced parentheses' problem. This detailed resource details brute force and optimized approaches.
Factorial using recursion
RecursionLearn how to solve the 'Factorial using recursion' problem. This detailed resource details brute force and optimized approaches.
Palindromic partitions
RecursionLearn how to solve the 'Palindromic partitions' problem. This detailed resource details brute force and optimized approaches.
N bit binary numbers
RecursionLearn how to solve the 'N bit binary numbers' problem. This detailed resource details brute force and optimized approaches.
Generate subsets
RecursionLearn how to solve the 'Generate subsets' problem. This detailed resource details brute force and optimized approaches.
Remove adjacent duplicates recursively
RecursionLearn how to solve the 'Remove adjacent duplicates recursively' problem. This detailed resource details brute force and optimized approaches.
Find Largest element in an array
ArraysLearn how to solve the 'Find Largest element in an array' problem. This detailed resource details brute force and optimized approaches.
Find Smallest Element in an Array
ArraysLearn how to solve the 'Find Smallest Element in an Array' problem. This detailed resource details brute force and optimized approaches.
Find the Smallest and largest element in an array
ArraysLearn how to solve the 'Find the Smallest and largest element in an array' problem. This detailed resource details brute force and optimized approaches.
Find Second Smallest Element in an Array
ArraysLearn how to solve the 'Find Second Smallest Element in an Array' problem. This detailed resource details brute force and optimized approaches.
Calculate the sum of elements in an array
ArraysLearn how to solve the 'Calculate the sum of elements in an array' problem. This detailed resource details brute force and optimized approaches.
Reverse an Array
ArraysLearn how to solve the 'Reverse an Array' problem. This detailed resource details brute force and optimized approaches.
Sort first half ascending and second half descending
ArraysLearn how to solve the 'Sort first half ascending and second half descending' problem. This detailed resource details brute force and optimized approaches.
Sort the elements of an array
ArraysLearn how to solve the 'Sort the elements of an array' problem. This detailed resource details brute force and optimized approaches.
Finding the frequency of elements in an array
ArraysLearn how to solve the 'Finding the frequency of elements in an array' problem. This detailed resource details brute force and optimized approaches.
Sorting elements of an array by frequency
ArraysLearn how to solve the 'Sorting elements of an array by frequency' problem. This detailed resource details brute force and optimized approaches.
Finding the Longest Palindrome in an Array
ArraysLearn how to solve the 'Finding the Longest Palindrome in an Array' problem. This detailed resource details brute force and optimized approaches.
Counting Distinct Elements in an Array
ArraysLearn how to solve the 'Counting Distinct Elements in an Array' problem. This detailed resource details brute force and optimized approaches.
Finding Repeating elements in an Array
ArraysLearn how to solve the 'Finding Repeating elements in an Array' problem. This detailed resource details brute force and optimized approaches.
Finding Non Repeating elements in an Array
ArraysLearn how to solve the 'Finding Non Repeating elements in an Array' problem. This detailed resource details brute force and optimized approaches.
Removing Duplicate elements from an array
ArraysLearn how to solve the 'Removing Duplicate elements from an array' problem. This detailed resource details brute force and optimized approaches.
Finding Minimum scalar product of two vectors
ArraysLearn how to solve the 'Finding Minimum scalar product of two vectors' problem. This detailed resource details brute force and optimized approaches.
Finding Maximum scalar product of two vectors
ArraysLearn how to solve the 'Finding Maximum scalar product of two vectors' problem. This detailed resource details brute force and optimized approaches.
Counting even and odd elements in an array
ArraysLearn how to solve the 'Counting even and odd elements in an array' problem. This detailed resource details brute force and optimized approaches.
Find all Symmetric pairs in an array
ArraysLearn how to solve the 'Find all Symmetric pairs in an array' problem. This detailed resource details brute force and optimized approaches.
Find maximum product sub-array
ArraysLearn how to solve the 'Find maximum product sub-array' problem. This detailed resource details brute force and optimized approaches.
Arrays are disjoint or not
ArraysLearn how to solve the 'Arrays are disjoint or not' problem. This detailed resource details brute force and optimized approaches.
Array subset check
ArraysLearn how to solve the 'Array subset check' problem. This detailed resource details brute force and optimized approaches.
Can all numbers of array be made equal
ArraysLearn how to solve the 'Can all numbers of array be made equal' problem. This detailed resource details brute force and optimized approaches.
Minimum sum absolute difference
ArraysLearn how to solve the 'Minimum sum absolute difference' problem. This detailed resource details brute force and optimized approaches.
Sort according to another array
ArraysLearn how to solve the 'Sort according to another array' problem. This detailed resource details brute force and optimized approaches.
Replace each element by rank
ArraysLearn how to solve the 'Replace each element by rank' problem. This detailed resource details brute force and optimized approaches.
Finding equilibrium index
ArraysLearn how to solve the 'Finding equilibrium index' problem. This detailed resource details brute force and optimized approaches.
Array rotation
ArraysLearn how to solve the 'Array rotation' problem. This detailed resource details brute force and optimized approaches.
Circular rotation by K positions
ArraysLearn how to solve the 'Circular rotation by K positions' problem. This detailed resource details brute force and optimized approaches.
Balanced Parenthesis Problem
ArraysLearn how to solve the 'Balanced Parenthesis Problem' problem. This detailed resource details brute force and optimized approaches.