Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Sub Array Creation Makes O(n) solution O(n^2)

himanshu1495

Nov 16, 2023

I think we shouldn't have to create all the subarrays because that makes the solution O(n^2) instead of O(n) thus kind of defeating the purpose of learning sliding window pattern

0

0

Comments
Comments