The day 26 problem in May Leetcoding Challenge. (Contiguous Array ).
Problem statement:
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
Example 1:
Input: [0,1]
Output: 2
Explanation: [0, 1] is the longest contiguous subarray with equal number of 0 and 1.
Example 2:
Input: [0,1,0]
Output: 2
Explanation: [0, 1] (or [1, 0]) is a longest contiguous subarray with equal number of 0 and 1.
Note: The length of the given binary array will not exceed 50,000.
If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful.
Code Link: https://github.com/Algorithms-Made-Ea...
#coding #leetcode #softwareengineering #algorithmsMadeEasy
Nesta página do site você pode assistir ao vídeo on-line Contiguous Array | Leetcode - 525 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Algorithms Made Easy 26 Maio 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 601 vezes e gostou 14 espectadores. Boa visualização!