@raza07
Nothing here yet.
Nothing here yet.
Sep 10, 2022 · 1 min read · Bubble sorting Algo is useful in sorting an unsorted Array in Ascending order. It is achieved by comparing each element with its Adjacent element in every pass. If the Adjacent element is smaller we will swap the elements, which in end will give us a...
Join discussionAug 21, 2022 · 1 min read · Q - Given value of k find the matching value's index from a 2D Array. If not found then Return -1. import java.util.*; public class Main { public static void main(String[] args) { int [][] arr = { {23, 4, 1}, {18, 12...
Join discussionAug 21, 2022 · 1 min read · How to Reverse an Array using swap Function in JAVA import java.util.*; public class Main { public static void main(String[] args) { int[] arr = {1, 3, 4, 5, 6}; reverse(arr); System.out.println(Arrays.toString(arr)); ...
Join discussion