《 Huawei machine test real problem 》 The column includes Huawei column of niuke.com 、 Huawei test questions 、 Huawei OD Real problem of machine test .
If you are preparing for Huawei's interview , If you want to know something, you can send me a private letter , I will try my best to help you , I can also give you some suggestions !
This paper solves the non optimal solution ( Non optimal performance ).
Input a series of square wave signals , Find the longest completely continuous alternating square wave signal , And output it , If there are alternating square wave signals of the same length , Just output any , The square wave signal is used for high level 1 identification , In the low position 0 identification , Pictured :
explain :