Лучшая практика кодирования

Интерактивный портал практики

Овладейте концепциями программирования, решив более 350 структурированных задач на Python. Просматривайте сопоставления сложности, пробные прогоны и сравнивайте простые и оптимальные решения, а затем мгновенно запускайте свой код.

Дорожная карта учебной программы

1

Core Logic & Numbers

Master variables, loops, and mathematical properties.

Посмотреть первую проблему
2

Array Manipulations

In-place operations, rotations, and frequency counting.

Посмотреть первую проблему
3

Hashing & Strings

Using sets and dictionaries for O(n) performance.

Посмотреть первую проблему
4

Two Pointers & Windows

Optimizing linear scans with dynamic boundaries.

Посмотреть первую проблему
5

Trees & Graphs

Hierarchical data and pathfinding algorithms.

Посмотреть первую проблему
#001

Positive or Negative number

Basics

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

Легко
#002

Even or Odd number

Basics

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

Легко
#003

Sum of First N Natural numbers

Basics

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

Легко
#004

Sum of N natural numbers

Basics

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

Легко
#005

Sum of numbers in a given range

Basics

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

Легко
#006

Greatest of two numbers

Basics

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

Легко
#007

Greatest of the Three numbers

Basics

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

Легко
#008

Leap year or not

Basics

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

Легко
#009

Prime number

Basics

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

Легко
#010

Prime number within a given range

Basics

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

Легко
#011

Sum of digits of a number

Basics

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

Легко
#012

Reverse of a number

Basics

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

Легко
#013

Palindrome number

Basics

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

Легко
#014

Armstrong number

Basics

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

Легко
#015

Armstrong number in a given range

Basics

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

Легко
#016

Fibonacci Series upto nth term

Basics

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

Легко
#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.

Легко
#018

Factorial of a number

Basics

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

Легко
#019

Power of a number

Basics

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

Легко
#020

Factor of a number

Basics

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

Легко
#021

Finding Prime Factors of a number

Basics

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

Легко
#022

Strong number

Basics

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

Легко
#023

Perfect number

Basics

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

Легко
#024

Perfect Square

Basics

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

Легко
#025

Automorphic number

Basics

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

Легко
#026

Harshad number

Basics

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

Легко
#027

Abundant number

Basics

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

Легко
#028

Friendly pair

Basics

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

Легко
#029

Highest Common Factor(HCF)

Numbers

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

Легко
#030

Lowest Common Multiple (LCM)

Numbers

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

Легко
#031

Greatest Common Divisor

Numbers

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

Легко
#032

Binary to Decimal conversion

Numbers

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

Легко
#033

Octal to Decimal conversion

Numbers

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

Легко
#034

Hexadecimal to Decimal conversion

Numbers

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

Легко
#035

Decimal to Binary conversion

Numbers

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

Легко
#036

Decimal to Octal Conversion

Numbers

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

Легко
#037

Decimal to Hexadecimal Conversion

Numbers

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

Легко
#038

Binary to Octal conversion

Numbers

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

Легко
#039

Octal to Binary conversion

Numbers

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

Легко
#040

Quadrants in which a given coordinate lies

Numbers

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

Легко
#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.

Легко
#042

Maximum number of handshakes

Numbers

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

Жесткий
#043

Addition of two fractions

Numbers

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

Легко
#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.

Легко
#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.

Легко
#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.

Легко
#047

Calculate the area of a circle

Numbers

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

Легко
#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.

Легко
#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.

Легко
#050

Convert digit/number to words

Numbers

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

Легко
#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.

Легко
#052

Finding Number of times x digit occurs

Numbers

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

Легко
#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.

Легко
#054

Finding Roots of a quadratic equation

Numbers

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

Легко
#055

Power of a Number using Recursion

Recursion

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

Средний
#056

Prime Number using Recursion

Recursion

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

Средний
#057

Largest element in an array

Recursion

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

Легко
#058

Smallest element in an array

Recursion

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

Легко
#059

Reversing a Number using Recursion

Recursion

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

Средний
#060

HCF using Recursion

Recursion

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

Средний
#061

LCM using Recursion

Recursion

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

Средний
#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.

Средний
#063

Print All Permutations of a String

Recursion

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

Легко
#064

F(N)th term recursion problem

Recursion

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

Средний
#065

Sum of all subsets

Recursion

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

Легко
#066

Last non-zero digit in factorial

Recursion

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

Легко
#067

Nth row of Pascal Triangle

Recursion

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

Легко
#068

Generate balanced parentheses

Recursion

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

Легко
#069

Factorial using recursion

Recursion

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

Средний
#070

Palindromic partitions

Recursion

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

Легко
#071

N bit binary numbers

Recursion

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

Легко
#072

Generate subsets

Recursion

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

Легко
#073

Remove adjacent duplicates recursively

Recursion

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

Легко
#074

Find Largest element in an array

Arrays

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

Легко
#075

Find Smallest Element in an Array

Arrays

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

Легко
#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.

Легко
#077

Find Second Smallest Element in an Array

Arrays

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

Легко
#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.

Легко
#079

Reverse an Array

Arrays

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

Легко
#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.

Легко
#081

Sort the elements of an array

Arrays

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

Легко
#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.

Легко
#083

Sorting elements of an array by frequency

Arrays

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

Легко
#084

Finding the Longest Palindrome in an Array

Arrays

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

Легко
#085

Counting Distinct Elements in an Array

Arrays

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

Легко
#086

Finding Repeating elements in an Array

Arrays

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

Легко
#087

Finding Non Repeating elements in an Array

Arrays

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

Легко
#088

Removing Duplicate elements from an array

Arrays

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

Легко
#089

Finding Minimum scalar product of two vectors

Arrays

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

Легко
#090

Finding Maximum scalar product of two vectors

Arrays

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

Жесткий
#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.

Легко
#092

Find all Symmetric pairs in an array

Arrays

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

Легко
#093

Find maximum product sub-array

Arrays

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

Жесткий
#094

Arrays are disjoint or not

Arrays

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

Легко
#095

Array subset check

Arrays

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

Легко
#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.

Легко
#097

Minimum sum absolute difference

Arrays

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

Легко
#098

Sort according to another array

Arrays

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

Легко
#099

Replace each element by rank

Arrays

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

Легко
#100

Finding equilibrium index

Arrays

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

Легко
#101

Array rotation

Arrays

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

Легко
#102

Circular rotation by K positions

Arrays

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

Легко
#103

Balanced Parenthesis Problem

Arrays

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

Легко