Ultimate Coding Practice

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

1

Core Logic & Numbers

Master variables, loops, and mathematical properties.

View First Problem
2

Array Manipulations

In-place operations, rotations, and frequency counting.

View First Problem
3

Hashing & Strings

Using sets and dictionaries for O(n) performance.

View First Problem
4

Two Pointers & Windows

Optimizing linear scans with dynamic boundaries.

View First Problem
5

Trees & Graphs

Hierarchical data and pathfinding algorithms.

View First Problem
#001

Positive or Negative number

Basics

Detailed guide and Python implementation for the 'Positive or Negative number' problem.

Easy
#002

Even or Odd number

Basics

Detailed guide and Python implementation for the 'Even or Odd number' problem.

Easy
#003

Sum of First N Natural numbers

Basics

Detailed guide and Python implementation for the 'Sum of First N Natural numbers' problem.

Easy
#004

Sum of N natural numbers

Basics

Detailed guide and Python implementation for the 'Sum of N natural numbers' problem.

Easy
#005

Sum of numbers in a given range

Basics

Detailed guide and Python implementation for the 'Sum of numbers in a given range' problem.

Easy
#006

Greatest of two numbers

Basics

Detailed guide and Python implementation for the 'Greatest of two numbers' problem.

Easy
#007

Greatest of the Three numbers

Basics

Detailed guide and Python implementation for the 'Greatest of the Three numbers' problem.

Easy
#008

Leap year or not

Basics

Detailed guide and Python implementation for the 'Leap year or not' problem.

Easy
#009

Prime number

Basics

Detailed guide and Python implementation for the 'Prime number' problem.

Easy
#010

Prime number within a given range

Basics

Detailed guide and Python implementation for the 'Prime number within a given range' problem.

Easy
#011

Sum of digits of a number

Basics

Detailed guide and Python implementation for the 'Sum of digits of a number' problem.

Easy
#012

Reverse of a number

Basics

Detailed guide and Python implementation for the 'Reverse of a number' problem.

Easy
#013

Palindrome number

Basics

Detailed guide and Python implementation for the 'Palindrome number' problem.

Easy
#014

Armstrong number

Basics

Detailed guide and Python implementation for the 'Armstrong number' problem.

Easy
#015

Armstrong number in a given range

Basics

Detailed guide and Python implementation for the 'Armstrong number in a given range' problem.

Easy
#016

Fibonacci Series upto nth term

Basics

Detailed guide and Python implementation for the 'Fibonacci Series upto nth term' problem.

Easy
#017

Find the Nth Term of the Fibonacci Series

Basics

Detailed guide and Python implementation for the 'Find the Nth Term of the Fibonacci Series' problem.

Easy
#018

Factorial of a number

Basics

Detailed guide and Python implementation for the 'Factorial of a number' problem.

Easy
#019

Power of a number

Basics

Detailed guide and Python implementation for the 'Power of a number' problem.

Easy
#020

Factor of a number

Basics

Detailed guide and Python implementation for the 'Factor of a number' problem.

Easy
#021

Finding Prime Factors of a number

Basics

Detailed guide and Python implementation for the 'Finding Prime Factors of a number' problem.

Easy
#022

Strong number

Basics

Detailed guide and Python implementation for the 'Strong number' problem.

Easy
#023

Perfect number

Basics

Detailed guide and Python implementation for the 'Perfect number' problem.

Easy
#024

Perfect Square

Basics

Detailed guide and Python implementation for the 'Perfect Square' problem.

Easy
#025

Automorphic number

Basics

Detailed guide and Python implementation for the 'Automorphic number' problem.

Easy
#026

Harshad number

Basics

Detailed guide and Python implementation for the 'Harshad number' problem.

Easy
#027

Abundant number

Basics

Detailed guide and Python implementation for the 'Abundant number' problem.

Easy
#028

Friendly pair

Basics

Detailed guide and Python implementation for the 'Friendly pair' problem.

Easy
#029

Highest Common Factor(HCF)

Numbers

Detailed guide and Python implementation for the 'Highest Common Factor(HCF)' problem.

Easy
#030

Lowest Common Multiple (LCM)

Numbers

Detailed guide and Python implementation for the 'Lowest Common Multiple (LCM)' problem.

Easy
#031

Greatest Common Divisor

Numbers

Detailed guide and Python implementation for the 'Greatest Common Divisor' problem.

Easy
#032

Binary to Decimal conversion

Numbers

Detailed guide and Python implementation for the 'Binary to Decimal conversion' problem.

Easy
#033

Octal to Decimal conversion

Numbers

Detailed guide and Python implementation for the 'Octal to Decimal conversion' problem.

Easy
#034

Hexadecimal to Decimal conversion

Numbers

Detailed guide and Python implementation for the 'Hexadecimal to Decimal conversion' problem.

Easy
#035

Decimal to Binary conversion

Numbers

Detailed guide and Python implementation for the 'Decimal to Binary conversion' problem.

Easy
#036

Decimal to Octal Conversion

Numbers

Detailed guide and Python implementation for the 'Decimal to Octal Conversion' problem.

Easy
#037

Decimal to Hexadecimal Conversion

Numbers

Detailed guide and Python implementation for the 'Decimal to Hexadecimal Conversion' problem.

Easy
#038

Binary to Octal conversion

Numbers

Detailed guide and Python implementation for the 'Binary to Octal conversion' problem.

Easy
#039

Octal to Binary conversion

Numbers

Detailed guide and Python implementation for the 'Octal to Binary conversion' problem.

Easy
#040

Quadrants in which a given coordinate lies

Numbers

Detailed guide and Python implementation for the 'Quadrants in which a given coordinate lies' problem.

Easy
#041

Permutations in which n people can occupy r seats

Numbers

Detailed guide and Python implementation for the 'Permutations in which n people can occupy r seats' problem.

Easy
#042

Maximum number of handshakes

Numbers

Detailed guide and Python implementation for the 'Maximum number of handshakes' problem.

Hard
#043

Addition of two fractions

Numbers

Detailed guide and Python implementation for the 'Addition of two fractions' problem.

Easy
#044

Replace all 0’s with 1 in a given integer

Numbers

Detailed guide and Python implementation for the 'Replace all 0’s with 1 in a given integer' problem.

Easy
#045

Can a number be expressed as a sum of two prime numbers

Numbers

Detailed guide and Python implementation for the 'Can a number be expressed as a sum of two prime numbers' problem.

Easy
#046

Count possible decoding of a given digit sequence

Numbers

Detailed guide and Python implementation for the 'Count possible decoding of a given digit sequence' problem.

Easy
#047

Calculate the area of a circle

Numbers

Detailed guide and Python implementation for the 'Calculate the area of a circle' problem.

Easy
#048

Find the prime numbers between 1 to 100

Numbers

Detailed guide and Python implementation for the 'Find the prime numbers between 1 to 100' problem.

Easy
#049

Calculate the number of digits in an integer

Numbers

Detailed guide and Python implementation for the 'Calculate the number of digits in an integer' problem.

Easy
#050

Convert digit/number to words

Numbers

Detailed guide and Python implementation for the 'Convert digit/number to words' problem.

Easy
#051

Counting number of days in a given month of a year

Numbers

Detailed guide and Python implementation for the 'Counting number of days in a given month of a year' problem.

Easy
#052

Finding Number of times x digit occurs

Numbers

Detailed guide and Python implementation for the 'Finding Number of times x digit occurs' problem.

Easy
#053

Finding number of integers which has exactly x divisors

Numbers

Detailed guide and Python implementation for the 'Finding number of integers which has exactly x divisors' problem.

Easy
#054

Finding Roots of a quadratic equation

Numbers

Detailed guide and Python implementation for the 'Finding Roots of a quadratic equation' problem.

Easy
#055

Power of a Number using Recursion

Recursion

Detailed guide and Python implementation for the 'Power of a Number using Recursion' problem.

Medium
#056

Prime Number using Recursion

Recursion

Detailed guide and Python implementation for the 'Prime Number using Recursion' problem.

Medium
#057

Largest element in an array

Recursion

Detailed guide and Python implementation for the 'Largest element in an array' problem.

Easy
#058

Smallest element in an array

Recursion

Detailed guide and Python implementation for the 'Smallest element in an array' problem.

Easy
#059

Reversing a Number using Recursion

Recursion

Detailed guide and Python implementation for the 'Reversing a Number using Recursion' problem.

Medium
#060

HCF using Recursion

Recursion

Detailed guide and Python implementation for the 'HCF using Recursion' problem.

Medium
#061

LCM using Recursion

Recursion

Detailed guide and Python implementation for the 'LCM using Recursion' problem.

Medium
#062

Program to calculate length of string using recursion

Recursion

Detailed guide and Python implementation for the 'Program to calculate length of string using recursion' problem.

Medium
#063

Print All Permutations of a String

Recursion

Detailed guide and Python implementation for the 'Print All Permutations of a String' problem.

Easy
#064

F(N)th term recursion problem

Recursion

Detailed guide and Python implementation for the 'F(N)th term recursion problem' problem.

Medium
#065

Sum of all subsets

Recursion

Detailed guide and Python implementation for the 'Sum of all subsets' problem.

Easy
#066

Last non-zero digit in factorial

Recursion

Detailed guide and Python implementation for the 'Last non-zero digit in factorial' problem.

Easy
#067

Nth row of Pascal Triangle

Recursion

Detailed guide and Python implementation for the 'Nth row of Pascal Triangle' problem.

Easy
#068

Generate balanced parentheses

Recursion

Detailed guide and Python implementation for the 'Generate balanced parentheses' problem.

Easy
#069

Factorial using recursion

Recursion

Detailed guide and Python implementation for the 'Factorial using recursion' problem.

Medium
#070

Palindromic partitions

Recursion

Detailed guide and Python implementation for the 'Palindromic partitions' problem.

Easy
#071

N bit binary numbers

Recursion

Detailed guide and Python implementation for the 'N bit binary numbers' problem.

Easy
#072

Generate subsets

Recursion

Detailed guide and Python implementation for the 'Generate subsets' problem.

Easy
#073

Remove adjacent duplicates recursively

Recursion

Detailed guide and Python implementation for the 'Remove adjacent duplicates recursively' problem.

Easy
#074

Find Largest element in an array

Arrays

Detailed guide and Python implementation for the 'Find Largest element in an array' problem.

Easy
#075

Find Smallest Element in an Array

Arrays

Detailed guide and Python implementation for the 'Find Smallest Element in an Array' problem.

Easy
#076

Find the Smallest and largest element in an array

Arrays

Detailed guide and Python implementation for the 'Find the Smallest and largest element in an array' problem.

Easy
#077

Find Second Smallest Element in an Array

Arrays

Detailed guide and Python implementation for the 'Find Second Smallest Element in an Array' problem.

Easy
#078

Calculate the sum of elements in an array

Arrays

Detailed guide and Python implementation for the 'Calculate the sum of elements in an array' problem.

Easy
#079

Reverse an Array

Arrays

Detailed guide and Python implementation for the 'Reverse an Array' problem.

Easy
#080

Sort first half ascending and second half descending

Arrays

Detailed guide and Python implementation for the 'Sort first half ascending and second half descending' problem.

Easy
#081

Sort the elements of an array

Arrays

Detailed guide and Python implementation for the 'Sort the elements of an array' problem.

Easy
#082

Finding the frequency of elements in an array

Arrays

Detailed guide and Python implementation for the 'Finding the frequency of elements in an array' problem.

Easy
#083

Sorting elements of an array by frequency

Arrays

Detailed guide and Python implementation for the 'Sorting elements of an array by frequency' problem.

Easy
#084

Finding the Longest Palindrome in an Array

Arrays

Detailed guide and Python implementation for the 'Finding the Longest Palindrome in an Array' problem.

Easy
#085

Counting Distinct Elements in an Array

Arrays

Detailed guide and Python implementation for the 'Counting Distinct Elements in an Array' problem.

Easy
#086

Finding Repeating elements in an Array

Arrays

Detailed guide and Python implementation for the 'Finding Repeating elements in an Array' problem.

Easy
#087

Finding Non Repeating elements in an Array

Arrays

Detailed guide and Python implementation for the 'Finding Non Repeating elements in an Array' problem.

Easy
#088

Removing Duplicate elements from an array

Arrays

Detailed guide and Python implementation for the 'Removing Duplicate elements from an array' problem.

Easy
#089

Finding Minimum scalar product of two vectors

Arrays

Detailed guide and Python implementation for the 'Finding Minimum scalar product of two vectors' problem.

Easy
#090

Finding Maximum scalar product of two vectors

Arrays

Detailed guide and Python implementation for the 'Finding Maximum scalar product of two vectors' problem.

Hard
#091

Counting even and odd elements in an array

Arrays

Detailed guide and Python implementation for the 'Counting even and odd elements in an array' problem.

Easy
#092

Find all Symmetric pairs in an array

Arrays

Detailed guide and Python implementation for the 'Find all Symmetric pairs in an array' problem.

Easy
#093

Find maximum product sub-array

Arrays

Detailed guide and Python implementation for the 'Find maximum product sub-array' problem.

Hard
#094

Arrays are disjoint or not

Arrays

Detailed guide and Python implementation for the 'Arrays are disjoint or not' problem.

Easy
#095

Array subset check

Arrays

Detailed guide and Python implementation for the 'Array subset check' problem.

Easy
#096

Can all numbers of array be made equal

Arrays

Detailed guide and Python implementation for the 'Can all numbers of array be made equal' problem.

Easy
#097

Minimum sum absolute difference

Arrays

Detailed guide and Python implementation for the 'Minimum sum absolute difference' problem.

Easy
#098

Sort according to another array

Arrays

Detailed guide and Python implementation for the 'Sort according to another array' problem.

Easy
#099

Replace each element by rank

Arrays

Detailed guide and Python implementation for the 'Replace each element by rank' problem.

Easy
#100

Finding equilibrium index

Arrays

Detailed guide and Python implementation for the 'Finding equilibrium index' problem.

Easy
#101

Array rotation

Arrays

Detailed guide and Python implementation for the 'Array rotation' problem.

Easy
#102

Circular rotation by K positions

Arrays

Detailed guide and Python implementation for the 'Circular rotation by K positions' problem.

Easy
#103

Balanced Parenthesis Problem

Arrays

Detailed guide and Python implementation for the 'Balanced Parenthesis Problem' problem.

Easy