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.

#001

Positive or Negative number

Basics

Learn how to solve the 'Positive or Negative number' problem. This detailed resource details brute force and optimized approaches.

Easy
#002

Even or Odd number

Basics

Learn how to solve the 'Even or Odd number' problem. This detailed resource details brute force and optimized approaches.

Easy
#003

Sum of First N Natural numbers

Basics

Learn how to solve the 'Sum of First N Natural numbers' problem. This detailed resource details brute force and optimized approaches.

Easy
#004

Sum of N natural numbers

Basics

Learn how to solve the 'Sum of N natural numbers' problem. This detailed resource details brute force and optimized approaches.

Easy
#005

Sum of numbers in a given range

Basics

Learn how to solve the 'Sum of numbers in a given range' problem. This detailed resource details brute force and optimized approaches.

Easy
#006

Greatest of two numbers

Basics

Learn how to solve the 'Greatest of two numbers' problem. This detailed resource details brute force and optimized approaches.

Easy
#007

Greatest of the Three numbers

Basics

Learn how to solve the 'Greatest of the Three numbers' problem. This detailed resource details brute force and optimized approaches.

Easy
#008

Leap year or not

Basics

Learn how to solve the 'Leap year or not' problem. This detailed resource details brute force and optimized approaches.

Easy
#009

Prime number

Basics

Learn how to solve the 'Prime number' problem. This detailed resource details brute force and optimized approaches.

Easy
#010

Prime number within a given range

Basics

Learn how to solve the 'Prime number within a given range' problem. This detailed resource details brute force and optimized approaches.

Easy
#011

Sum of digits of a number

Basics

Learn how to solve the 'Sum of digits of a number' problem. This detailed resource details brute force and optimized approaches.

Easy
#012

Reverse of a number

Basics

Learn how to solve the 'Reverse of a number' problem. This detailed resource details brute force and optimized approaches.

Easy
#013

Palindrome number

Basics

Learn how to solve the 'Palindrome number' problem. This detailed resource details brute force and optimized approaches.

Easy
#014

Armstrong number

Basics

Learn how to solve the 'Armstrong number' problem. This detailed resource details brute force and optimized approaches.

Easy
#015

Armstrong number in a given range

Basics

Learn how to solve the 'Armstrong number in a given range' problem. This detailed resource details brute force and optimized approaches.

Easy
#016

Fibonacci Series upto nth term

Basics

Learn how to solve the 'Fibonacci Series upto nth term' problem. This detailed resource details brute force and optimized approaches.

Easy
#017

Find the Nth Term of the Fibonacci Series

Basics

Learn how to solve the 'Find the Nth Term of the Fibonacci Series' problem. This detailed resource details brute force and optimized approaches.

Easy
#018

Factorial of a number

Basics

Learn how to solve the 'Factorial of a number' problem. This detailed resource details brute force and optimized approaches.

Easy
#019

Power of a number

Basics

Learn how to solve the 'Power of a number' problem. This detailed resource details brute force and optimized approaches.

Easy
#020

Factor of a number

Basics

Learn how to solve the 'Factor of a number' problem. This detailed resource details brute force and optimized approaches.

Easy
#021

Finding Prime Factors of a number

Basics

Learn how to solve the 'Finding Prime Factors of a number' problem. This detailed resource details brute force and optimized approaches.

Easy
#022

Strong number

Basics

Learn how to solve the 'Strong number' problem. This detailed resource details brute force and optimized approaches.

Easy
#023

Perfect number

Basics

Learn how to solve the 'Perfect number' problem. This detailed resource details brute force and optimized approaches.

Easy
#024

Perfect Square

Basics

Learn how to solve the 'Perfect Square' problem. This detailed resource details brute force and optimized approaches.

Easy
#025

Automorphic number

Basics

Learn how to solve the 'Automorphic number' problem. This detailed resource details brute force and optimized approaches.

Easy
#026

Harshad number

Basics

Learn how to solve the 'Harshad number' problem. This detailed resource details brute force and optimized approaches.

Easy
#027

Abundant number

Basics

Learn how to solve the 'Abundant number' problem. This detailed resource details brute force and optimized approaches.

Easy
#028

Friendly pair

Basics

Learn how to solve the 'Friendly pair' problem. This detailed resource details brute force and optimized approaches.

Easy
#029

Highest Common Factor(HCF)

Numbers

Learn how to solve the 'Highest Common Factor(HCF)' problem. This detailed resource details brute force and optimized approaches.

Easy
#030

Lowest Common Multiple (LCM)

Numbers

Learn how to solve the 'Lowest Common Multiple (LCM)' problem. This detailed resource details brute force and optimized approaches.

Easy
#031

Greatest Common Divisor

Numbers

Learn how to solve the 'Greatest Common Divisor' problem. This detailed resource details brute force and optimized approaches.

Easy
#032

Binary to Decimal conversion

Numbers

Learn how to solve the 'Binary to Decimal conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#033

Octal to Decimal conversion

Numbers

Learn how to solve the 'Octal to Decimal conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#034

Hexadecimal to Decimal conversion

Numbers

Learn how to solve the 'Hexadecimal to Decimal conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#035

Decimal to Binary conversion

Numbers

Learn how to solve the 'Decimal to Binary conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#036

Decimal to Octal Conversion

Numbers

Learn how to solve the 'Decimal to Octal Conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#037

Decimal to Hexadecimal Conversion

Numbers

Learn how to solve the 'Decimal to Hexadecimal Conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#038

Binary to Octal conversion

Numbers

Learn how to solve the 'Binary to Octal conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#039

Octal to Binary conversion

Numbers

Learn how to solve the 'Octal to Binary conversion' problem. This detailed resource details brute force and optimized approaches.

Easy
#040

Quadrants in which a given coordinate lies

Numbers

Learn how to solve the 'Quadrants in which a given coordinate lies' problem. This detailed resource details brute force and optimized approaches.

Easy
#041

Permutations in which n people can occupy r seats

Numbers

Learn how to solve the 'Permutations in which n people can occupy r seats' problem. This detailed resource details brute force and optimized approaches.

Easy
#042

Maximum number of handshakes

Numbers

Learn how to solve the 'Maximum number of handshakes' problem. This detailed resource details brute force and optimized approaches.

Hard
#043

Addition of two fractions

Numbers

Learn how to solve the 'Addition of two fractions' problem. This detailed resource details brute force and optimized approaches.

Easy
#044

Replace all 0’s with 1 in a given integer

Numbers

Learn how to solve the 'Replace all 0’s with 1 in a given integer' problem. This detailed resource details brute force and optimized approaches.

Easy
#045

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

Numbers

Learn 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.

Easy
#046

Count possible decoding of a given digit sequence

Numbers

Learn how to solve the 'Count possible decoding of a given digit sequence' problem. This detailed resource details brute force and optimized approaches.

Easy
#047

Calculate the area of a circle

Numbers

Learn how to solve the 'Calculate the area of a circle' problem. This detailed resource details brute force and optimized approaches.

Easy
#048

Find the prime numbers between 1 to 100

Numbers

Learn how to solve the 'Find the prime numbers between 1 to 100' problem. This detailed resource details brute force and optimized approaches.

Easy
#049

Calculate the number of digits in an integer

Numbers

Learn how to solve the 'Calculate the number of digits in an integer' problem. This detailed resource details brute force and optimized approaches.

Easy
#050

Convert digit/number to words

Numbers

Learn how to solve the 'Convert digit/number to words' problem. This detailed resource details brute force and optimized approaches.

Easy
#051

Counting number of days in a given month of a year

Numbers

Learn 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.

Easy
#052

Finding Number of times x digit occurs

Numbers

Learn how to solve the 'Finding Number of times x digit occurs' problem. This detailed resource details brute force and optimized approaches.

Easy
#053

Finding number of integers which has exactly x divisors

Numbers

Learn how to solve the 'Finding number of integers which has exactly x divisors' problem. This detailed resource details brute force and optimized approaches.

Easy
#054

Finding Roots of a quadratic equation

Numbers

Learn how to solve the 'Finding Roots of a quadratic equation' problem. This detailed resource details brute force and optimized approaches.

Easy
#055

Power of a Number using Recursion

Recursion

Learn how to solve the 'Power of a Number using Recursion' problem. This detailed resource details brute force and optimized approaches.

Medium
#056

Prime Number using Recursion

Recursion

Learn how to solve the 'Prime Number using Recursion' problem. This detailed resource details brute force and optimized approaches.

Medium
#057

Largest element in an array

Recursion

Learn how to solve the 'Largest element in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#058

Smallest element in an array

Recursion

Learn how to solve the 'Smallest element in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#059

Reversing a Number using Recursion

Recursion

Learn how to solve the 'Reversing a Number using Recursion' problem. This detailed resource details brute force and optimized approaches.

Medium
#060

HCF using Recursion

Recursion

Learn how to solve the 'HCF using Recursion' problem. This detailed resource details brute force and optimized approaches.

Medium
#061

LCM using Recursion

Recursion

Learn how to solve the 'LCM using Recursion' problem. This detailed resource details brute force and optimized approaches.

Medium
#062

Program to calculate length of string using recursion

Recursion

Learn how to solve the 'Program to calculate length of string using recursion' problem. This detailed resource details brute force and optimized approaches.

Medium
#063

Print All Permutations of a String

Recursion

Learn how to solve the 'Print All Permutations of a String' problem. This detailed resource details brute force and optimized approaches.

Easy
#064

F(N)th term recursion problem

Recursion

Learn how to solve the 'F(N)th term recursion problem' problem. This detailed resource details brute force and optimized approaches.

Medium
#065

Sum of all subsets

Recursion

Learn how to solve the 'Sum of all subsets' problem. This detailed resource details brute force and optimized approaches.

Easy
#066

Last non-zero digit in factorial

Recursion

Learn how to solve the 'Last non-zero digit in factorial' problem. This detailed resource details brute force and optimized approaches.

Easy
#067

Nth row of Pascal Triangle

Recursion

Learn how to solve the 'Nth row of Pascal Triangle' problem. This detailed resource details brute force and optimized approaches.

Easy
#068

Generate balanced parentheses

Recursion

Learn how to solve the 'Generate balanced parentheses' problem. This detailed resource details brute force and optimized approaches.

Easy
#069

Factorial using recursion

Recursion

Learn how to solve the 'Factorial using recursion' problem. This detailed resource details brute force and optimized approaches.

Medium
#070

Palindromic partitions

Recursion

Learn how to solve the 'Palindromic partitions' problem. This detailed resource details brute force and optimized approaches.

Easy
#071

N bit binary numbers

Recursion

Learn how to solve the 'N bit binary numbers' problem. This detailed resource details brute force and optimized approaches.

Easy
#072

Generate subsets

Recursion

Learn how to solve the 'Generate subsets' problem. This detailed resource details brute force and optimized approaches.

Easy
#073

Remove adjacent duplicates recursively

Recursion

Learn how to solve the 'Remove adjacent duplicates recursively' problem. This detailed resource details brute force and optimized approaches.

Easy
#074

Find Largest element in an array

Arrays

Learn how to solve the 'Find Largest element in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#075

Find Smallest Element in an Array

Arrays

Learn how to solve the 'Find Smallest Element in an Array' problem. This detailed resource details brute force and optimized approaches.

Easy
#076

Find the Smallest and largest element in an array

Arrays

Learn how to solve the 'Find the Smallest and largest element in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#077

Find Second Smallest Element in an Array

Arrays

Learn how to solve the 'Find Second Smallest Element in an Array' problem. This detailed resource details brute force and optimized approaches.

Easy
#078

Calculate the sum of elements in an array

Arrays

Learn how to solve the 'Calculate the sum of elements in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#079

Reverse an Array

Arrays

Learn how to solve the 'Reverse an Array' problem. This detailed resource details brute force and optimized approaches.

Easy
#080

Sort first half ascending and second half descending

Arrays

Learn how to solve the 'Sort first half ascending and second half descending' problem. This detailed resource details brute force and optimized approaches.

Easy
#081

Sort the elements of an array

Arrays

Learn how to solve the 'Sort the elements of an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#082

Finding the frequency of elements in an array

Arrays

Learn how to solve the 'Finding the frequency of elements in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#083

Sorting elements of an array by frequency

Arrays

Learn how to solve the 'Sorting elements of an array by frequency' problem. This detailed resource details brute force and optimized approaches.

Easy
#084

Finding the Longest Palindrome in an Array

Arrays

Learn how to solve the 'Finding the Longest Palindrome in an Array' problem. This detailed resource details brute force and optimized approaches.

Easy
#085

Counting Distinct Elements in an Array

Arrays

Learn how to solve the 'Counting Distinct Elements in an Array' problem. This detailed resource details brute force and optimized approaches.

Easy
#086

Finding Repeating elements in an Array

Arrays

Learn how to solve the 'Finding Repeating elements in an Array' problem. This detailed resource details brute force and optimized approaches.

Easy
#087

Finding Non Repeating elements in an Array

Arrays

Learn how to solve the 'Finding Non Repeating elements in an Array' problem. This detailed resource details brute force and optimized approaches.

Easy
#088

Removing Duplicate elements from an array

Arrays

Learn how to solve the 'Removing Duplicate elements from an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#089

Finding Minimum scalar product of two vectors

Arrays

Learn how to solve the 'Finding Minimum scalar product of two vectors' problem. This detailed resource details brute force and optimized approaches.

Easy
#090

Finding Maximum scalar product of two vectors

Arrays

Learn how to solve the 'Finding Maximum scalar product of two vectors' problem. This detailed resource details brute force and optimized approaches.

Hard
#091

Counting even and odd elements in an array

Arrays

Learn how to solve the 'Counting even and odd elements in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#092

Find all Symmetric pairs in an array

Arrays

Learn how to solve the 'Find all Symmetric pairs in an array' problem. This detailed resource details brute force and optimized approaches.

Easy
#093

Find maximum product sub-array

Arrays

Learn how to solve the 'Find maximum product sub-array' problem. This detailed resource details brute force and optimized approaches.

Hard
#094

Arrays are disjoint or not

Arrays

Learn how to solve the 'Arrays are disjoint or not' problem. This detailed resource details brute force and optimized approaches.

Easy
#095

Array subset check

Arrays

Learn how to solve the 'Array subset check' problem. This detailed resource details brute force and optimized approaches.

Easy
#096

Can all numbers of array be made equal

Arrays

Learn how to solve the 'Can all numbers of array be made equal' problem. This detailed resource details brute force and optimized approaches.

Easy
#097

Minimum sum absolute difference

Arrays

Learn how to solve the 'Minimum sum absolute difference' problem. This detailed resource details brute force and optimized approaches.

Easy
#098

Sort according to another array

Arrays

Learn how to solve the 'Sort according to another array' problem. This detailed resource details brute force and optimized approaches.

Easy
#099

Replace each element by rank

Arrays

Learn how to solve the 'Replace each element by rank' problem. This detailed resource details brute force and optimized approaches.

Easy
#100

Finding equilibrium index

Arrays

Learn how to solve the 'Finding equilibrium index' problem. This detailed resource details brute force and optimized approaches.

Easy
#101

Array rotation

Arrays

Learn how to solve the 'Array rotation' problem. This detailed resource details brute force and optimized approaches.

Easy
#102

Circular rotation by K positions

Arrays

Learn how to solve the 'Circular rotation by K positions' problem. This detailed resource details brute force and optimized approaches.

Easy
#103

Balanced Parenthesis Problem

Arrays

Learn how to solve the 'Balanced Parenthesis Problem' problem. This detailed resource details brute force and optimized approaches.

Easy