Maximum consecutive ones II. Given an array which only consists of 0s and 1s. Write a code to find the maximum number of consecutive 1s…
Tag: Sliding Window
Let’s discuss a interesting problem maximum sum subarray of size k Given an array of positive integers and a positive number K. Write a code…
Given a string s, find the length of the longest substring without repeating characters. For example – Example 1: Input: “abcabcbb” Output: 3 The output…