Allan Santosh Joseph’s Post

View profile for Allan Santosh Joseph, graphic

IIT Guwahati Student | PW IOI | Passionate about Innovation and Problem Solving

🚀 Day 20 of #100DaysOfCode Challenge: Today, I tackled the "Three Indices" problem, where I had to find three indices i, j, and k in a permutation such that pi<pj and pj>pk. 🧠💻 Question link : https://lnkd.in/dsd_4AGd The task was to determine if such indices exist or not in a given permutation. My approach was a simple brute-force method: I iterated through the array and checked for the condition. If the condition was met, I outputted "yes"; otherwise, "no." Github link of my solution : https://lnkd.in/dP2TvA4c I'm excited to share this approach with you and would love to hear your thoughts. If you have a different or more efficient approach, or if you'd like clarification on my method, let's connect and discuss! 🔗 #100DaysOfCode #CodingChallenge #PersonalGrowth #Consistency #Discipline #Programming #TechJourney #CodeforcesStreak #Coding #Algorithm #Optimization

  • No alternative text description for this image
Shubham Gupta

-- Full stack mern developer | B.Sc. CS student

9mo

Keep it up

To view or add a comment, sign in

Explore topics