You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/rampatra/arrays/SortedSubSequence.java
+8-9
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@
5
5
*
6
6
* @author rampatra
7
7
* @since 10/12/15
8
-
* @time: 8:32 PM
9
8
*/
10
9
publicclassSortedSubSequence {
11
10
@@ -19,36 +18,36 @@ public class SortedSubSequence {
19
18
* 2) Create another auxiliary array greater[0..n-1]. greater[i] should store the index of a number which is greater than arr[i] and is on right side of arr[i]. greater[i] should contain -1 if there is no such element.
20
19
* 3) Finally traverse both smaller[] and greater[] and find the index i for which both smaller[i] and greater[i] are not -1.
21
20
*
22
-
* @param a
21
+
* @param arr
23
22
*/
24
-
publicstaticvoidprintSortedSubSequenceOfSize3(int[] a) {
0 commit comments