We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functionjimOrders($orders){// Write your code here$hasil_hitung=[];$hasil=[];foreach($ordersas$key=>$val){$hasil_hitung[$key+1]=$val[0]+$val[1];}asort($hasil_hitung);foreach($hasil_hitungas$key=>$val){$hasil[]=$key;}return$hasil;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jim and the Orders
You are viewing a single comment's thread. Return to all comments →
Here is my solution in PHP :