I recently solved a problem on Leetcode called "624. Maximum Distance in Arrays.". While solving the problem, I had an idea from reading the problem statement and implemented it. The code was a bit messy but got solved and updated to my GitHub repository as usual.
But when I was reading the tutorial and the discussion, I found more clean approaches to solving the problem; those solutions were not faster but cleaner and simpler. So after understanding, I solved the problem again with a cleaner code.
Now my previous solution has been replaced by the new solution in the GitHub repository. But I want to store all of my accepted submissions where I might try different approaches.
I recently solved a problem on Leetcode called "624. Maximum Distance in Arrays.". While solving the problem, I had an idea from reading the problem statement and implemented it. The code was a bit messy but got solved and updated to my GitHub repository as usual.
But when I was reading the tutorial and the discussion, I found more clean approaches to solving the problem; those solutions were not faster but cleaner and simpler. So after understanding, I solved the problem again with a cleaner code.
Now my previous solution has been replaced by the new solution in the GitHub repository. But I want to store all of my accepted submissions where I might try different approaches.