Skip to content
Courses
DSA to Development
Machine Learning & Data Science
Generative AI & ChatGPT
Become AWS Certified
DSA Courses
Data Structure & Algorithm(C++/JAVA)
Data Structure & Algorithm(Python)
Data Structure & Algorithm(JavaScript)
Programming Languages
CPP
Java
Python
JavaScript
C
All Courses
Tutorials
Python Tutorial
Taking Input in Python
Python Operators
Python Data Types
Python Loops and Control Flow
Python Conditional Statements
Python Loops
Python Functions
Python OOPS Concept
Python Data Structures
Python Exception Handling
Python File Handling
Python Exercises
Java
Learn Java Programming Language
Java Collections
Java 8 Tutorial
Java Programs
Java Interview Questions
Java Interview Questions
Core Java Interview Questions-Freshers
Java Multithreading Interview Questions
OOPs Interview Questions and Answers
Java Exercises
Java Quiz
Java Quiz
Core Java MCQ
Java Projects
Advance Java
Spring Tutorial
Spring Boot Tutorial
Spring Boot Interview Questions
Spring MVC Tutorial
Spring MVC Interview Questions
Hibernate Tutorial
Hibernate Interview Questions
Programming Languages
JavaScript
C++
R Tutorial
SQL
PHP
C#
C
Scala
Perl
Go Language
Kotlin
System Design
System Design Tutorial
Software Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions and Answers
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Computer Science Subjects
Operating System
DBMS
Computer Networks
Engineering Mathematics
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
File Permission Commands
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Engineering Tutorial
Testing Interview Questions
Jira
Databases
DBMS Tutorial
SQL Tutorial
PostgreSQL Tutorial
MongoDB Tutorial
SQL Interview Questions
MySQL Interview Questions
PL/SQL Interview Questions
Android
Android Tutorial
Android Studio Tutorial
Kotlin For Android
Android Projects
Android Interview Questions
6 Weeks of Android App Development
Excel
MS Excel Tutorial
Introduction to MS Excel
Data Analysis in Excel
Basic Excel Formulas & Functions
Data Analysis in Advanced Excel
Workbooks
Statistical Functions
Data Visualization in Excel
Pivot Tables in Excel
Excel Spreadsheets in Python
Basic Excel Shortcuts
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
DSA
Data Structures
Arrays
Matrix
Strings
Linked List
Stack
Queue
Tree
Heap
Hashing
Graph
Set Data Structure
Map Data Structure
Advanced Data Structure
Data Structures Tutorial
Algorithms
Analysis of Algorithms
Design and Analysis of Algorithms
Asymptotic Analysis
Asymptotic Notations
Worst, Average and Best Cases
Searching Algorithms
Linear Search
Binary Search
Searching Algorithms Tutorial
Sorting Algorithms
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Counting Sort
Radix Sort
Bucket Sort
Sorting Algorithms Tutorial
Greedy Algorithms
Dynamic Programming
Graph Algorithms
Pattern Searching
Recursion
Backtracking
Divide and Conquer
Mathematical Algorithms
Geometric Algorithms
Bitwise Algorithms
Randomized Algorithms
Branch and Bound
Algorithms Tutorial
DSA Tutorial
Practice
All DSA Problems
Problem of the Day
Company Wise Coding Practice
Amazon
Microsoft
Flipkart
Explore All
GfG SDE Sheet
Practice Problems Difficulty Wise
School
Basic
Easy
Medium
Hard
Language Wise Coding Practice
CPP
Java
Python
Curated DSA Lists
Beginner's DSA Sheet
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
DSA Cheat Sheets
SDE Sheet
DSA Sheet for Beginners
FAANG Coding Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Data Science
Python Tutorial
R Tutorial
Machine Learning
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Python Data Visualization Tutorial
Data Visualization with R
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
Bootstrap Tutorial
Typescript
Web Development Using Python
Django
Django Tutorial
Django Projects
Django Interview Questions
Flask
Flask Tutorial
Flask Projects
Flask Interview Questions
Postman
Github
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
Learn Complete Web Development
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
▲
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Searching
1.7k+ articles
Geometric
690+ articles
number-digits
590+ articles
series
510+ articles
DSA
>
Algorithms
>
Mathematical
Mathematical
7.7k+ posts
Popular Articles
Recent Articles
Count digits
Last Updated: 28 November 2024
Given a number n, the task is to return the count of digits in this number.Example:Input: n = 1567Output: 4Explanation: There are 4 digits i
...read more
Mathematical
number-digits
DSA
Basic Coding Problems
Program for Decimal to Binary Conversion
Last Updated: 22 March 2024
Given a decimal number as input, we need to write a program to convert the given decimal number into an equivalent binary number.Examples of
...read more
MAQ Software
Mathematical
binary-representation
GATE CS
Computer Organization & Architecture
base-conversion
Digital Logic
DSA
Coin Change - Minimum Coins to Make Sum
Last Updated: 15 November 2024
Given an array of coins[] of size n and a target value sum, where coins[i] represent the coins of different denominations. You have an infin
...read more
Amazon
Morgan Stanley
Oracle
Samsung
Snapdeal
Paytm
Accolite
Synopsys
Dynamic Programming
Mathematical
dp-coin-change
DSA
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Searching
1.7k+ articles
Geometric
690+ articles
number-digits
590+ articles
series
510+ articles
Euclidean algorithms (Basic and Extended)
Last Updated: 13 December 2024
The Euclidean algorithm is a way to find the greatest common divisor of two positive integers. GCD of two numbers is the largest number that
...read more
Mathematical
GCD-LCM
DSA
Factorial of a Number
Last Updated: 13 November 2024
Given the number n (n =0), find its factorial. Factorial of n is defined as 1 x 2 x ... x n. For n = 0, factorial is 1. We are going to disc
...read more
Morgan Stanley
Samsung
MAQ Software
Mathematical
factorial
Wipro
Inautix
DSA
Basic Coding Problems
Program to Find GCD or HCF of Two Numbers
Last Updated: 10 October 2024
Given two numbers a and b, the task is to find the GCD of the two numbers.Note: The GCD (Greatest Common Divisor) or HCF (Highest Common Fac
...read more
SAP Labs
Mathematical
GCD-LCM
DSA
Basic Coding Problems
Swap Two Numbers Without Using Third Variable
Last Updated: 26 December 2024
Given two variables a and y, swap two variables without using a third variable.Examples: Input: a = 2, b = 3Output: a = 3, b = 2Input: a = 2
...read more
Bit Magic
Mathematical
Bitwise-XOR
Swap-Program
DSA
Program to find sum of elements in a given array
Last Updated: 20 September 2024
Given an array of integers, find the sum of its elements.Examples:Input : arr[] = {1, 2, 3}Output : 6Explanation: 1 + 2 + 3 = 6Input : arr[]
...read more
Arrays
Mathematical
DSA
Basic Coding Problems
Print all prime factors of a given number
Last Updated: 18 December 2024
Given a number n, the task is to find all prime factors of n.Examples:Input: n = 24Output: 2 2 2 3Explanation: The prime factorization of 24
...read more
Yahoo
combinatorics
Mathematical
sieve
prime-factor
Prime Number
DSA
Sieve of Eratosthenes
Last Updated: 08 October 2024
Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.Example:Input : n =10Output : 2 3 5
...read more
Qualcomm
VMWare
MAQ Software
Dynamic Programming
Mathematical
GE
sieve
Prime Number
number-theory
DSA
Coin Change - Count Ways to Make Sum
Last Updated: 16 November 2024
Given an integerarray of coins[] of size nrepresenting different types of denominations and an integer sum, the task is to count all combina
...read more
Microsoft
Morgan Stanley
Samsung
Snapdeal
Paytm
Accolite
Dynamic Programming
Greedy
Mathematical
DSA
Jump Game - Minimum Jumps to Reach End
Last Updated: 25 November 2024
Given an arrayarr[]of non-negative integers. Each array element represents themaximumlength of the jumps that can be made forward from that
...read more
Amazon
Adobe
Morgan Stanley
Walmart
SAP Labs
Housing.com
Moonfrog Labs
Dynamic Programming
Mathematical
OYO
DSA
Nth Fibonacci Number
Last Updated: 09 October 2024
Given a positive integer n, the task is to find the nth Fibonacci number.The Fibonacci sequence is a sequence where the next term is the sum
...read more
Amazon
Snapdeal
MAQ Software
MakeMyTrip
Bloomberg
Dynamic Programming
Mathematical
Fibonacci
series
Modular Arithmetic
matrix-exponentiation
DSA
Permutations of given String
Last Updated: 18 September 2024
Given a string S, the task is to write a program to print all permutations of a given string.A permutation also called an "arrangement numbe
...read more
Strings
Amazon
Samsung
Walmart
Cisco
Citrix
Snapdeal
Accolite
MAQ Software
Greedy
Backtracking
Mathematical
Combinatorial
OYO
permutation
Recursion
Apple
strings
DSA
Write a program to reverse digits of a number
Last Updated: 29 November 2024
Given an Integer n, find the reverse of its digits.Examples:Input: n = 12345 Output: 54321Explanation: The output "54321" for the input num
...read more
MAQ Software
MakeMyTrip
Mathematical
number-digits
Modular Arithmetic
Recursion
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !