Skip to content

Commit

Permalink
Update Sort_2D_Array.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ErzaTitania-2001 authored Jan 4, 2021
1 parent 21c58d6 commit 15d797e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Java/cp/Sort_2D_Array.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
/* We are given a 2D array of order N X M and a column number K ( 1<=K<=m). Our task is to sort the 2D array according to values in the Column K.
Examples:
Input : If our 2D array is given as (Order 4X4)
39 27 11 42
10 93 91 90
54 78 56 89
24 64 20 65
Sorting it by values in column 3
Output : 39 27 11 42
24 64 20 65
54 78 56 89
10 93 91 90
*/
import java.util.*;
class Sort_2D_Array {
public static void main(String args[]) {
Expand Down Expand Up @@ -79,4 +64,4 @@ public static void sort(int[][] arr, int col, int row) {
Space Complexity : O(1)
Time Complexity : O(m^2)
*
*/
*/

0 comments on commit 15d797e

Please sign in to comment.