/Java-DSA

This repository contains the coding problems solved in Java DSA.

Primary LanguageJava

Java-DSA

This repository contains the coding problems solved in Java DSA.

Legend

  • File Name :- Description (Implementation Code)
  • File Name :- Description (Solved DSA Problems Code)
  • Basics

  • Functions :- Functions in Array
  • Scoping :- Function Scoping
  • VarArgs :- Implementatation of VarArgs in Java
  • PrimeNumber :- Checking if a Number is Prime or not.
  • Armstrong :- To print all the 3 or less digit armstrong numbers upto 'n'
  • Arrays

  • ArrayListIntro :- Implementation of ArrayList in Java
  • LargestElement :- Program to return the index of largest and second-largest element in an array
  • CheckForSort :- Program to find whether an array is sorted or not.
  • Operations :- Performing insert and delete operations in Array
  • ArrayRev :- Program to Reverse an Array
  • RemoveDup :- To Remove Duplicates elements from a Sorted Array.
  • MoveZeroes :- Moving Zeroes to the End of Array
  • LeftRotateArr :- Programs to Left Rotate an Array by One and 'd' positions respectively in counter-clockwise fashion.
  • LeadersArr :- Program to find the leader numbers in an array(sorted or unsorted).
  • MaxDifference :- Maximum Difference Problem with Order - Program to find maximum value of arr[j] - arr[i] such that j > i
  • FrequencySortedArr :- Program to find the frequencies of each unique number in a sorted array.
  • MaxOnes :- Problem to find the maximum number of consecutive 1's in a binary array.
  • StockBS :- Stock Buy And Sell Problem, program to find maximum profit in buying and selling of stocks on different days.
  • TrapRainwater :- Program to find the units of water that can be stored/trapped within a given set of bars.
  • MaxSumSubArr :- Program to Find Subarray having maximum sum of elements.
  • LongestEvenOdd :- Program to find the longest subarray with alternate appearing Even-Odd Numbers.