/hackerrank-python

Repository to keep notes and learning of various challenges done in Python through the HackerRank website

HackerRank repository for Python challenges

Repository to keep notes and learning of various challenges done in Python through the HackerRank website

Runner up challenge

Problem description: Find the second largest number in a list of numbers entered by the user Solution Steps

  • Get 1st input: "n" how many numbers to enter
  • Get 2nd input: the numbers themselves
  • Split 2nd input and store to a list
  • Remove duplicates in a list
  • Sort the list
  • Get the 2nd largest i.e. [-2]

Next Challenge