filmov
tv
LeetCode Python Tutorial - #791 - Custom Sort String

Показать описание
In this Python tutorial, I’m solving LeetCode problem #791 - Custom Sort String. This problem tests skills in string manipulation and custom sorting, and I’m sharing my solution as part of my own practice, hoping it might help others understand the approach. I watched a bunch of tutorials online to find the solution that made the most sense to me, helping me build my coding skills and get comfortable with these types of problems :)
Problem Link:
This solution counts characters in s and builds the result by following the order in order, adding any extra characters at the end. I’ll go through each step to show how this approach helped me understand the problem, and I hope it helps you too!
Problem Link:
This solution counts characters in s and builds the result by following the order in order, adding any extra characters at the end. I’ll go through each step to show how this approach helped me understand the problem, and I hope it helps you too!