Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Misc
2.1k+ articles
Matrix
1.2k+ articles
Geometric
690+ articles
series
510+ articles
pattern-printing
160+ articles
area-volume-programs
120+ articles
Basic Coding Problems
360+ posts
Popular Articles
Recent Articles
Program to print ASCII Value of a character
Last Updated: 08 February 2024
Given a character, we need to print its ASCII value in C/C++/Java/Python. Examples :Input : a Output : 97Input : DOutput : 68Here are few m
...read more
ASCII
Basic Coding Problems
Programming
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
All substrings of a given String
Last Updated: 14 February 2025
Given a string s, containing lowercase alphabetical characters. The task is to print all non-empty substrings of the given string.Examples :
...read more
Strings
strings
DSA
Basic Coding Problems
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Misc
2.1k+ articles
Matrix
1.2k+ articles
Geometric
690+ articles
series
510+ articles
pattern-printing
160+ articles
area-volume-programs
120+ articles
Reverse a String in Java
Last Updated: 27 March 2025
In Java, reversing a string means reordering the string characters from the last to the first position. Reversing a string is a common task
...read more
Java
Java-Strings
Java Programs
Java-String-Programs
Basic Coding Problems
C Program to Check for Palindrome String
Last Updated: 10 January 2025
A string is said to be palindrome if the reverse of the string is the same as the string. In this article, we will learn how to check whethe
...read more
Strings
Morgan Stanley
Paytm
FactSet
palindrome
C Language
TCS
C-String
C Programs
C Basic Programs
DSA
Basic Coding Problems
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 LCM of two numbers
Last Updated: 14 February 2025
LCM of two numbers is the smallest number which can be divided by both numbers.Input : a = 12, b = 18Output : 3636 is the smallest number
...read more
SAP Labs
Mathematical
GCD-LCM
DSA
Basic Coding Problems
Program to Find GCD or HCF of Two Numbers
Last Updated: 14 February 2025
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
Program for Tower of Hanoi Algorithm
Last Updated: 17 February 2025
Tower of Hanoi is a mathematical puzzle where we have three rods (A, B, and C) and N disks. Initially, all the disks are stacked in decreasi
...read more
Stack
Divide and Conquer
Recursion
DSA
Basic Coding Problems
Program to multiply two matrices
Last Updated: 13 December 2024
Given two matrices, the task is to multiply them. Matrices can either be square or rectangular:Examples:(Square Matrix Multiplication)Input:
...read more
Paytm
Mathematical
Matrix
DSA
Basic Coding Problems
Largest element in an Array
Last Updated: 27 December 2024
Given an array arr. The task is to find the largest element in the given array.Examples:Input: arr[] = [10, 20, 4]Output: 20Explanation: Amo
...read more
Arrays
Order-Statistics
Searching
Matrix
DSA
Basic Coding Problems
Check if a given Year is Leap Year
Last Updated: 06 January 2025
You are given an Integern. Returntrueif It is a Leap Year otherwise returnfalse. A leap year is a year that contains an additional day, Febr
...read more
Zoho
date-time-program
DSA
Basic Coding Problems
C Program to Swap Two Numbers
Last Updated: 10 January 2025
Swapping two numbers means exchanging their values. In this article, we will learn how to swap values of two numbers in a C program.ExampleI
...read more
Samsung
C Language
C Programs
Swap-Program
Basic Coding Problems
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 a given matrix in spiral form
Last Updated: 21 December 2024
Given a matrix mat[][] of size m x n, the task is to print all elements of the matrix in spiral form.Examples:Input:mat[][] = [[1, 2, 3,
...read more
Microsoft
Amazon
Morgan Stanley
Oracle
D-E-Shaw
Snapdeal
Paytm
Accolite
Zoho
Nagarro
MAQ Software
BrowserStack
MakeMyTrip
nearbuy
Matrix
Amazon-Question
Snapdeal-Question
spiral
pattern-printing
Arrays
DSA
Basic Coding Problems
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 !