Notification

No New notification

Learn to code with PrepInsta

Check PrepInsta Coding Blogs, Core CS, DSA etc

One Subscription, For Everyone

Get 200+ Courses under one Subscription

  • aptitude
  • aws_cloud
  • competitive-coding
  • dbms
  • logical_reasoning
  • operating-system
  • verbal
  • tcs_nqt
  • data_science
  • ethical_hacking
  • dsa
  • verbal
  • basic_coding
  • python
  • cpp
  • java
  • basic_coding
  • python
Explore PrepInsta Prime

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

TCS Coding Problem 16

14 comments on “TCS Coding Problem 16”


  • Anshul

    n = int(input(“Enter number of elements”))
    arr=[]
    for i in range(0,n):
    ele=input(“Enter Element: \n”)
    arr.append(ele)

    arr.sort()
    print(arr[-2])