原问题 Question:You are given a0-indexedinteger arraynumswhose length is a power of2.Apply the following algorithm onnums:Letnbe the length ofnums. Ifn == 1,endthe process. Otherwise,createa new0-indexedinteger arraynewNumsof lengthn / 2.For everyevenindexiwhere0 = i n / 2,assignthe value ofnewNums[i]asmin(nums[2 * i]