Solved LeetCode problem 179 with custom comparator in Python

📌 Problem. no 179: Given a list of non-negative integers, arrange them such that they form the largest possible number. Solved using a custom comparator to sort numbers based on concatenation order and achieve the optimal result. ⚡ Runtime: 3 ms – Beats 78.56% of submissions 💾 Memory: 12.69 MB – Beats 24.66% of solutions 💻 Language Used: Python ✅ Status: Accepted – All 235 test cases passed successfully! This problem enhanced my understanding of string-based comparison, custom sorting, and optimization through logic-based ordering. It’s an elegant challenge that blends sorting and string manipulation seamlessly. 🔑 Key Learnings: ✔️ Learned how to design and implement custom comparators ✔️ Understood how concatenation order affects numeric outcomes ✔️ Strengthened my grasp on sorting logic and greedy approaches 🎯 Day 84 — A creative challenge that refined my problem-solving through custom sorting and logical structuring! 🚀🔥 #100DaysOfCode #100DaysOfDSA #LeetCode #PythonProgramming #DataStructures #AlgorithmPractice #CodeNewbie #DailyCoding #ProblemSolving #TechJourney #WomenWhoCode #CodeLife #CodingChallenge #DSAChallenge #DeveloperLife #PythonDeveloper #LearnToCode #CodingCommunity #CodeEveryday #SoftwareEngineering #KathirCollegeOfEngineering #KathirCollege #BTechLife #AIDS #FutureEngineer #CodingMotivation #ProgrammingSkills

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories