Skip to content

This is the repository for learning Data Structures and Algorithms in Java.

License

Notifications You must be signed in to change notification settings

beRajeevKumar/DSA_Java

Repository files navigation

Sharpen Your DSA Problem Solving Skills

Table of Contents

Basic Problems

S.No Problem Theory Source Code
1 Leap Year Article Solution
2 Sum Of AP Article Solution
3 Product Sum Article Solution
4 Sum of first n terms Article Solution
5 Palindrome Article Solution
6 Strong Numbers Article Solution
7 GCD of two numbers Article Solution
8 Prime Number Article Solution
9 Area of a triangle Article Solution
10 Reverse a String Article Solution
11 Replace all 0's with 5 Article Solution
12 Find N-th term in the series Article Solution
13 Middle of Three Article Solution
14 Smallest K digit number divisible by X Article Solution
15 Check perfect square Article Solution
16 Check an Integer is power of 3 or not Article Solution
17 Krishnamurthy number Article Solution
18 Factors Sum Article Solution
19 Remove consonants from a string Article Solution
20 Factorial Number Article Solution

Pattern Problems

S.No Problem Theory Source Code
1 Pattern 1 Article Solution
2 Pattern 2 Article Solution
3 Pattern 3 Article Solution
4 Pattern 4 Article Solution
5 Pattern 5 Article Solution
6 Pattern 6 Article Solution
7 Pattern 7 Article Solution
8 Pattern 8 Article Solution
9 Pattern 9 Article Solution
10 Pattern 10 Article Solution
11 Pattern 11 Article Solution
12 Pattern 12 Article Solution
13 Pattern 13 Article Solution
14 Pattern 14 Article Solution
15 Pattern 15 Article Solution
16 Pattern 16 Article Solution
17 Pattern 17 Article Solution
18 Pattern 18 Article Solution
19 Pattern 19 Article Solution
20 Pattern 20 Article Solution
21 Pattern 21 Article Solution
22 Pattern 22 Article Solution

Complexity

S.No Problem Theory Source Code
1

Mathematics

S.No Problem Theory Source Code
1 Count Digits Article Solution
2 Factorial Article Solution
3 Count digits in a factorial Article Solution
4 LCM And GCD Article Solution
5 Find Prime numbers in a range Article Solution
6 Prime Factors Article Solution
7 Sieve of Eratosthenes Article Solution
8 Prime Factorization using Sieve. Article Solution
9 All divisors of a Number Article Solution
10 Series GP Article Solution
11 Modular Multiplicative Inverse Article Solution
12 Power Of Numbers Article Solution

Bits Manipulation

S.No Problem Theory Source Code
1 Check whether K-th bit is set or not Article Solution
2 Find first set bit Article Solution
3 Count total set bits Article Solution
4 Power of 2 Article Solution
5 Rightmost different bit Article Solution
6 Bit Difference Article Solution
7 Swap all odd and even bits Article Solution
8 Palindrome numbers Article Solution
9 Longest Consecutive 1's Article Solution
10 Maximum AND Value Article Solution
11 Number is sparse or not Article Solution
12 Gray to Binary and Binary to Gray Article Solution
13 Gray to Binary equivalent Article Solution

Recursion

S.No Problem Theory Source Code
1 Print N to 1 without loop Solution Solution
2 Print 1 to n without using loops Solution Solution
3 Factorial Solution Solution

Arrays

S.No Problem Theory Source Code
1

Searching

S.No Problem Theory Source Code
1

Sorting

S.No Problem Theory Source Code
1

Matrix

S.No Problem Theory Source Code
1

Hashing

S.No Problem Theory Source Code
1



๐Ÿ“˜ย  License

The Whole content management system is released under the under terms of the MIT License.