Posts

Showing posts with the label DSA

Array-(Program 1)

Image
  The first program of DSA Series has come. The above program is one of the most basic program related to Array. In this program an Array has to be printed. Similarly, more programs will be covered in upcoming days.

Bubble Sort in Java

Image
  Bubble Sort is sorting technique.  In the above example, the array is used to sort in ascending order and for descending order the ">" symbol has to be replaced by "<" symbol.

Binary Search in Java

Image
  Binary Search requires sorted Array. To sort the given array, in-build sorting function "Arrays.sort()" has been used. Or sorting techniques such as Selection sort or Bubble sort can be used.