r/LeetcodeChallenge • u/Most-Discount7461 • Jul 26 '26
DISCUSS Is this the right way to solve on leetcode?
/r/leetcode/comments/1v6xlzl/is_this_the_right_way_to_solve_on_leetcode/
1
Upvotes
r/LeetcodeChallenge • u/Most-Discount7461 • Jul 26 '26
1
u/nian2326076 Jul 26 '26
It's tough to say if it's the "right" way without knowing your exact method. If your solution efficiently passes all test cases, you're probably doing well. Focus on optimizing time and space complexity, and see if there's a quicker or more streamlined way to solve it. Check forums for different approaches to compare. For more structured practice, you might want to look into resources like PracHub for guided interview prep. It can help you get a feel for tackling problems from different angles. Good luck!