Sep 10, 2021
Note that the given input is not sorted and for sorting any array, it would take O(nlogn) at best and then traverse through an array using sliding window causes -> O(nlogn) + O(n) -> O(nlogn) in your final solution
Note that the given input is not sorted and for sorting any array, it would take O(nlogn) at best and then traverse through an array using sliding window causes -> O(nlogn) + O(n) -> O(nlogn) in your final solution
Author, Speaker, Mentor and Coach - Test Automation & DevOps