Back to course home
0% completed
Vote For New Content
This can be solved with O(n) time and O(1) space complexity
sujay.gunjal
Jul 28, 2024
This can be solved with O(n) time and O(1) space complexity
0
0
Comments
S
sujay.gunjal 2 years ago
We can use two variables and make a one pass to get the solution no need to do two passes.