Final450-Solutions
Final450-Solutions copied to clipboard
This repository will contain solutions to 450 competitive questions by Love Babbar.
450 DSA Cracker Solutions
- 450 DSA Cracker is a comprehensive list of 400 + topic wise questions to build your confidence in data structure and algorithms and prepare yourself for placements.
- This WIP repository will contain solutions to all 450 questions prepared by Love Babbar in his competitve coding sheet solved in Java. Download the question sheet here.
Array
Matrix
Sl. No | Question | Solution |
---|---|---|
01 | Given a matrix mat[][] of size M*N. Traverse and print the matrix in spiral form. | SpiralTraversal.java |
02 | Search an element in a matrix | SearchEle.java |
String
Sl. No | Question | Solution |
---|---|---|
01 | Reverse a string | ReverseString.java |
02 | Check whether a String is Palindrome or not | Palindrome.java |
03 | Find Duplicate characters in a string | CountDuplicates.java |
04 | Check whether a string is a valid shuffle of two strings or not | InterleavingOfCommon.java |
05 | Count and Say Problem | CountAndSay.java |
Bit Manipulation
Sl. No | Question | Solution |
---|---|---|
01 | Count set bits in an Integer | SetBitsCount.java |
02 | Find the two non-repeating elements in an array of repeating elements | NonRepeatingNo.java |
03 | Count number of bits to be flipped to convert A to B | BitDifference.java |
04 | Count total set bits in all numbers from 1 to n | SetBitsUptoN.java |
05 | Program to find whether is no. is Power of 2 | PowerOf2.java |
06 | Find position of the only set bit | PositionOfSetBit.java |
07 | Copy set bits in a range | CopySetBitsRange.java |
08 | Divide two integers without using multiplication, division and mod operator | DivideWithoutOperator.java |