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.
Curriculum Roadmap
Positive or Negative number
BasicsDetailed guide and Python implementation for the 'Positive or Negative number' problem.
Even or Odd number
BasicsDetailed guide and Python implementation for the 'Even or Odd number' problem.
Sum of First N Natural numbers
BasicsDetailed guide and Python implementation for the 'Sum of First N Natural numbers' problem.
Sum of N natural numbers
BasicsDetailed guide and Python implementation for the 'Sum of N natural numbers' problem.
Sum of numbers in a given range
BasicsDetailed guide and Python implementation for the 'Sum of numbers in a given range' problem.
Greatest of two numbers
BasicsDetailed guide and Python implementation for the 'Greatest of two numbers' problem.
Greatest of the Three numbers
BasicsDetailed guide and Python implementation for the 'Greatest of the Three numbers' problem.
Leap year or not
BasicsDetailed guide and Python implementation for the 'Leap year or not' problem.
Prime number
BasicsDetailed guide and Python implementation for the 'Prime number' problem.
Prime number within a given range
BasicsDetailed guide and Python implementation for the 'Prime number within a given range' problem.
Sum of digits of a number
BasicsDetailed guide and Python implementation for the 'Sum of digits of a number' problem.
Reverse of a number
BasicsDetailed guide and Python implementation for the 'Reverse of a number' problem.
Palindrome number
BasicsDetailed guide and Python implementation for the 'Palindrome number' problem.
Armstrong number
BasicsDetailed guide and Python implementation for the 'Armstrong number' problem.
Armstrong number in a given range
BasicsDetailed guide and Python implementation for the 'Armstrong number in a given range' problem.
Fibonacci Series upto nth term
BasicsDetailed guide and Python implementation for the 'Fibonacci Series upto nth term' problem.
Find the Nth Term of the Fibonacci Series
BasicsDetailed guide and Python implementation for the 'Find the Nth Term of the Fibonacci Series' problem.
Factorial of a number
BasicsDetailed guide and Python implementation for the 'Factorial of a number' problem.
Power of a number
BasicsDetailed guide and Python implementation for the 'Power of a number' problem.
Factor of a number
BasicsDetailed guide and Python implementation for the 'Factor of a number' problem.
Finding Prime Factors of a number
BasicsDetailed guide and Python implementation for the 'Finding Prime Factors of a number' problem.
Strong number
BasicsDetailed guide and Python implementation for the 'Strong number' problem.
Perfect number
BasicsDetailed guide and Python implementation for the 'Perfect number' problem.
Perfect Square
BasicsDetailed guide and Python implementation for the 'Perfect Square' problem.
Automorphic number
BasicsDetailed guide and Python implementation for the 'Automorphic number' problem.
Harshad number
BasicsDetailed guide and Python implementation for the 'Harshad number' problem.
Abundant number
BasicsDetailed guide and Python implementation for the 'Abundant number' problem.
Friendly pair
BasicsDetailed guide and Python implementation for the 'Friendly pair' problem.
Highest Common Factor(HCF)
NumbersDetailed guide and Python implementation for the 'Highest Common Factor(HCF)' problem.
Lowest Common Multiple (LCM)
NumbersDetailed guide and Python implementation for the 'Lowest Common Multiple (LCM)' problem.
Greatest Common Divisor
NumbersDetailed guide and Python implementation for the 'Greatest Common Divisor' problem.
Binary to Decimal conversion
NumbersDetailed guide and Python implementation for the 'Binary to Decimal conversion' problem.
Octal to Decimal conversion
NumbersDetailed guide and Python implementation for the 'Octal to Decimal conversion' problem.
Hexadecimal to Decimal conversion
NumbersDetailed guide and Python implementation for the 'Hexadecimal to Decimal conversion' problem.
Decimal to Binary conversion
NumbersDetailed guide and Python implementation for the 'Decimal to Binary conversion' problem.
Decimal to Octal Conversion
NumbersDetailed guide and Python implementation for the 'Decimal to Octal Conversion' problem.
Decimal to Hexadecimal Conversion
NumbersDetailed guide and Python implementation for the 'Decimal to Hexadecimal Conversion' problem.
Binary to Octal conversion
NumbersDetailed guide and Python implementation for the 'Binary to Octal conversion' problem.
Octal to Binary conversion
NumbersDetailed guide and Python implementation for the 'Octal to Binary conversion' problem.
Quadrants in which a given coordinate lies
NumbersDetailed guide and Python implementation for the 'Quadrants in which a given coordinate lies' problem.
Permutations in which n people can occupy r seats
NumbersDetailed guide and Python implementation for the 'Permutations in which n people can occupy r seats' problem.
Maximum number of handshakes
NumbersDetailed guide and Python implementation for the 'Maximum number of handshakes' problem.
Addition of two fractions
NumbersDetailed guide and Python implementation for the 'Addition of two fractions' problem.
Replace all 0’s with 1 in a given integer
NumbersDetailed guide and Python implementation for the 'Replace all 0’s with 1 in a given integer' problem.
Can a number be expressed as a sum of two prime numbers
NumbersDetailed guide and Python implementation for the 'Can a number be expressed as a sum of two prime numbers' problem.
Count possible decoding of a given digit sequence
NumbersDetailed guide and Python implementation for the 'Count possible decoding of a given digit sequence' problem.
Calculate the area of a circle
NumbersDetailed guide and Python implementation for the 'Calculate the area of a circle' problem.
Find the prime numbers between 1 to 100
NumbersDetailed guide and Python implementation for the 'Find the prime numbers between 1 to 100' problem.
Calculate the number of digits in an integer
NumbersDetailed guide and Python implementation for the 'Calculate the number of digits in an integer' problem.
Convert digit/number to words
NumbersDetailed guide and Python implementation for the 'Convert digit/number to words' problem.
Counting number of days in a given month of a year
NumbersDetailed guide and Python implementation for the 'Counting number of days in a given month of a year' problem.
Finding Number of times x digit occurs
NumbersDetailed guide and Python implementation for the 'Finding Number of times x digit occurs' problem.
Finding number of integers which has exactly x divisors
NumbersDetailed guide and Python implementation for the 'Finding number of integers which has exactly x divisors' problem.
Finding Roots of a quadratic equation
NumbersDetailed guide and Python implementation for the 'Finding Roots of a quadratic equation' problem.
Power of a Number using Recursion
RecursionDetailed guide and Python implementation for the 'Power of a Number using Recursion' problem.
Prime Number using Recursion
RecursionDetailed guide and Python implementation for the 'Prime Number using Recursion' problem.
Largest element in an array
RecursionDetailed guide and Python implementation for the 'Largest element in an array' problem.
Smallest element in an array
RecursionDetailed guide and Python implementation for the 'Smallest element in an array' problem.
Reversing a Number using Recursion
RecursionDetailed guide and Python implementation for the 'Reversing a Number using Recursion' problem.
HCF using Recursion
RecursionDetailed guide and Python implementation for the 'HCF using Recursion' problem.
LCM using Recursion
RecursionDetailed guide and Python implementation for the 'LCM using Recursion' problem.
Program to calculate length of string using recursion
RecursionDetailed guide and Python implementation for the 'Program to calculate length of string using recursion' problem.
Print All Permutations of a String
RecursionDetailed guide and Python implementation for the 'Print All Permutations of a String' problem.
F(N)th term recursion problem
RecursionDetailed guide and Python implementation for the 'F(N)th term recursion problem' problem.
Sum of all subsets
RecursionDetailed guide and Python implementation for the 'Sum of all subsets' problem.
Last non-zero digit in factorial
RecursionDetailed guide and Python implementation for the 'Last non-zero digit in factorial' problem.
Nth row of Pascal Triangle
RecursionDetailed guide and Python implementation for the 'Nth row of Pascal Triangle' problem.
Generate balanced parentheses
RecursionDetailed guide and Python implementation for the 'Generate balanced parentheses' problem.
Factorial using recursion
RecursionDetailed guide and Python implementation for the 'Factorial using recursion' problem.
Palindromic partitions
RecursionDetailed guide and Python implementation for the 'Palindromic partitions' problem.
N bit binary numbers
RecursionDetailed guide and Python implementation for the 'N bit binary numbers' problem.
Generate subsets
RecursionDetailed guide and Python implementation for the 'Generate subsets' problem.
Remove adjacent duplicates recursively
RecursionDetailed guide and Python implementation for the 'Remove adjacent duplicates recursively' problem.
Find Largest element in an array
ArraysDetailed guide and Python implementation for the 'Find Largest element in an array' problem.
Find Smallest Element in an Array
ArraysDetailed guide and Python implementation for the 'Find Smallest Element in an Array' problem.
Find the Smallest and largest element in an array
ArraysDetailed guide and Python implementation for the 'Find the Smallest and largest element in an array' problem.
Find Second Smallest Element in an Array
ArraysDetailed guide and Python implementation for the 'Find Second Smallest Element in an Array' problem.
Calculate the sum of elements in an array
ArraysDetailed guide and Python implementation for the 'Calculate the sum of elements in an array' problem.
Reverse an Array
ArraysDetailed guide and Python implementation for the 'Reverse an Array' problem.
Sort first half ascending and second half descending
ArraysDetailed guide and Python implementation for the 'Sort first half ascending and second half descending' problem.
Sort the elements of an array
ArraysDetailed guide and Python implementation for the 'Sort the elements of an array' problem.
Finding the frequency of elements in an array
ArraysDetailed guide and Python implementation for the 'Finding the frequency of elements in an array' problem.
Sorting elements of an array by frequency
ArraysDetailed guide and Python implementation for the 'Sorting elements of an array by frequency' problem.
Finding the Longest Palindrome in an Array
ArraysDetailed guide and Python implementation for the 'Finding the Longest Palindrome in an Array' problem.
Counting Distinct Elements in an Array
ArraysDetailed guide and Python implementation for the 'Counting Distinct Elements in an Array' problem.
Finding Repeating elements in an Array
ArraysDetailed guide and Python implementation for the 'Finding Repeating elements in an Array' problem.
Finding Non Repeating elements in an Array
ArraysDetailed guide and Python implementation for the 'Finding Non Repeating elements in an Array' problem.
Removing Duplicate elements from an array
ArraysDetailed guide and Python implementation for the 'Removing Duplicate elements from an array' problem.
Finding Minimum scalar product of two vectors
ArraysDetailed guide and Python implementation for the 'Finding Minimum scalar product of two vectors' problem.
Finding Maximum scalar product of two vectors
ArraysDetailed guide and Python implementation for the 'Finding Maximum scalar product of two vectors' problem.
Counting even and odd elements in an array
ArraysDetailed guide and Python implementation for the 'Counting even and odd elements in an array' problem.
Find all Symmetric pairs in an array
ArraysDetailed guide and Python implementation for the 'Find all Symmetric pairs in an array' problem.
Find maximum product sub-array
ArraysDetailed guide and Python implementation for the 'Find maximum product sub-array' problem.
Arrays are disjoint or not
ArraysDetailed guide and Python implementation for the 'Arrays are disjoint or not' problem.
Array subset check
ArraysDetailed guide and Python implementation for the 'Array subset check' problem.
Can all numbers of array be made equal
ArraysDetailed guide and Python implementation for the 'Can all numbers of array be made equal' problem.
Minimum sum absolute difference
ArraysDetailed guide and Python implementation for the 'Minimum sum absolute difference' problem.
Sort according to another array
ArraysDetailed guide and Python implementation for the 'Sort according to another array' problem.
Replace each element by rank
ArraysDetailed guide and Python implementation for the 'Replace each element by rank' problem.
Finding equilibrium index
ArraysDetailed guide and Python implementation for the 'Finding equilibrium index' problem.
Array rotation
ArraysDetailed guide and Python implementation for the 'Array rotation' problem.
Circular rotation by K positions
ArraysDetailed guide and Python implementation for the 'Circular rotation by K positions' problem.
Balanced Parenthesis Problem
ArraysDetailed guide and Python implementation for the 'Balanced Parenthesis Problem' problem.