Skip to content

Commit ae40165

Browse files
added check array is sorted
1 parent 49831bd commit ae40165

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Check sorted array:
2+
3+
O(N), SC: O(1)
4+
https://www.codingninjas.com/codestudio/problems/ninja-and-the-sorted-check_6581957?utm_source=youtube&utm_medium=affiliate&utm_campaign=striver_Arrayproblems&leftPanelTab=1

Patterns/Arrays/Basic/SecondLargestAndSmallest.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ SC: O(1)
3737

3838

3939
All the three approaches:
40-
https://www.codingninjas.com/codestudio/problems/ninja-and-the-second-order-elements_6581960?utm_source=youtube&utm_medium=affiliate&utm_campaign=striver_Arrayproblems&leftPanelTab=1
40+
https://www.codingninjas.com/codestudio/problems/ninja-and-the-second-order-elements_6581960?utm_source=youtube&utm_medium=affiliate&utm_campaign=striver_Arrayproblems&leftPanelTab=1
41+
42+
43+
44+
WORKS FOR DUPLICATE

0 commit comments

Comments
 (0)