halfrost / LeetCode-Go

✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解
https://books.halfrost.com/leetcode
MIT License
32.98k stars 5.7k forks source link

Update problem #14 #217

Closed brenobaptista closed 2 years ago

brenobaptista commented 2 years ago

I suggest adding this solution to the problem because it doesn't require importing "sort". I also added a test case that usually rejects some submitions.