You are viewing a single comment's thread. Return to all comments →
in example when they have A=[16,8,7,6] and then remove 6 and 7, the new array is [20,16,8,7] It should be [20,16,8]
every iteration decreases array's length by 1
Seems like cookies are disabled on this browser, please enable them to open this website
Jesse and Cookies
You are viewing a single comment's thread. Return to all comments →
in example when they have A=[16,8,7,6] and then remove 6 and 7, the new array is [20,16,8,7] It should be [20,16,8]
every iteration decreases array's length by 1