Founding Batch Offer · HLD · LLD · System Design at ₹799 until 30 Nov

ProgramsLogic building

Phase 4 - Level 1: Basic Arrays

Introduction to arrays - storing and accessing multiple values.

10 programs · open one, then the next

Start with Input N Integers and Print Them
  1. 01Input N Integers and Print ThemBeginnerRead n integers into a list and print them in order. Beginners trace append, a second traversal, and the difference between a list and its displayed values.Open example →
  2. 02Sum of ArrayBeginnerAdd a fixed list of integers using a loop. Students trace the accumulator's initial value, repeated updates, and a final print after the complete traversal.Open example →
  3. 03Maximum ElementBeginnerFind a list's maximum with a manual Python scan. Students initialize from actual data, update a candidate, and understand why empty input cannot supply arr[0].Open example →
  4. 04Minimum ElementBeginnerRead integers and find the minimum with a loop. Students select the first element as an initial candidate and trace smaller replacements through the list.Open example →
  5. 05Count Positive, Negative, ZeroBeginnerCount positive, negative, and zero values in a Python list. Students maintain three independent counters and use one exclusive branch for each element's sign.Open example →
  6. 06Count Even and Odd ElementsBeginnerCount even and odd list elements with Python remainder tests. Students classify every integer once and distinguish the count of matches from the sum of values.Open example →
  7. 07Index of Maximum ElementBeginnerFind the zero-based position of a list's maximum. Students track both a candidate value and its index and see why equal maxima keep the first position.Open example →
  8. 08Index of Minimum ElementBeginnerFind the zero-based index of a list's minimum with Python. Students update a value-index pair and explain why repeated minima keep the first position.Open example →
  9. 09Elements Greater Than KBeginnerPrint list values strictly greater than a threshold with Python. Students use a filtering traversal, preserve input order, and test equality at the cutoff.Open example →
  10. 10Average of ArrayBeginnerCompute the average of entered list values with Python sum and division. Students distinguish a total from a mean and identify the nonempty-input requirement.Open example →