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
In questa pagina del sito puoi guardare il video online Contiguous Array | Leetcode - 525 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Algorithms Made Easy 26 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 601 volte e gli è piaciuto 14 spettatori. Buona visione!