Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
2#~Drop~2==MovingMap[Tr,#,2]&
–5 bytes from @att
Try it online!
[Included the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases from Noodle9 and DloscDLosc, respectively.]
[3, 4, 6, 10, 16]
[1, 1, 1, 2]
[Included the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases from Noodle9 and Dlosc, respectively.]
[Included the [3,4,6,10,16] and [1,1,1,2] falsey test cases from Noodle9 and DLosc, respectively.]
[3,4,6,10,16]
[1,1,1,2]
Try it online!Try it online!
[Added[Included the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases suggested byfrom Noodle9 and DLoscDlosc, respectively.]
[Added the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases suggested by Noodle9 and DLosc, respectively.]