Challenge Active
The Weekly Challenge
You don't have to be an expert
Task #1
Reorder Notes
You are given an array [composer, notes, permutation], reconstruct the melody by using each permutation value as the destination position of the corresponding note. Use no explicit for, foreach, or while loops. Output each result as COMPOSER => reordered notes.
Task #2
ZigZag Subarray
You are given an array of integers. Write a script to find the length of the longest contiguous subarray where the numbers alternate between strictly increasing and strictly decreasing (a ZigZag pattern).
SO WHAT DO YOU THINK ?
If you have any suggestions or ideas then please do share with us.
Contact with me