1. intro
    1. int arr[70] // to call an array

      Untitled

    2. Largest element in array

      1. sorting → largest will be last →nlogn
      2. largest = num type running the looop
    3. second largest element

      1. sorting→ then check emelent other then last one

        Untitled

      2. find largest, and then start a loop check all thing .

      3. optimal: go in a single loop, check if the current is bigger, then put current bigger in the second largest

    4. check if array is sorted

      1. check like this, that no previous is bigger

        Untitled

    5. remove duplicate in plan

      1. use set and itrate

        Untitled