Contiguous Array | Leetcode - 525

Опубликовано: 26 Май 2020
на канале: Algorithms Made Easy
601
14

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


На этой странице сайта вы можете посмотреть видео онлайн Contiguous Array | Leetcode - 525 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Algorithms Made Easy 26 Май 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 601 раз и оно понравилось 14 зрителям. Приятного просмотра!