ProgramsLogic building

Phase 4 - Level 5: Logical & Applied

Apply array logic to solve complex problems.

14 programs · open one, then the next

Start with Check if Array is Sorted (Ascending)
  1. 01Check if Array is Sorted (Ascending)AdvancedCheck if array is sorted in ascending order.Open example →
  2. 02Check if Array is Sorted (Descending)AdvancedCheck if array is sorted in descending order.Open example →
  3. 03Find Second LargestAdvancedFind second largest element in array.Open example →
  4. 04Find Second SmallestAdvancedFind second smallest element in array.Open example →
  5. 05Range (Max - Min)AdvancedCalculate range of array (max - min).Open example →
  6. 06Sum Except Max & MinAdvancedCalculate sum of array excluding max and min.Open example →
  7. 07Count Pairs with Sum KAdvancedCount pairs of elements whose sum equals k.Open example →
  8. 08Count Elements Greater Than AverageAdvancedCount elements greater than average.Open example →
  9. 09Frequency of Distinct ElementsAdvancedFind frequency of each distinct element.Open example →
  10. 10Unique Elements OnlyAdvancedCreate array with only unique elements.Open example →
  11. 11Find Kth Largest ElementAdvancedFind kth largest element in array.Open example →
  12. 12Rotate Array by K PositionsAdvancedRotate array elements by k positions to the right.Open example →
  13. 13Find Missing Number in SequenceAdvancedFind missing number in array containing 1 to n with one missing.Open example →
  14. 14Find Duplicate ElementAdvancedFind duplicate element in array of size n+1 with elements 1 to n.Open example →