Rest API Intermediate Hackerrank Test 源码
其余API-中间-Hackerrank测试 问题1 解决方案:仅利用10个GET请求,并利用任何团队最多只能进球10个目标的约束。 方法1: const fetch = require ( "node-fetch" ) ; let goals = [ ] ; for ( let i = 0 ; i <= 10 ; i ++ ) goals . push ( i ) ; let ans = 0 ; async function getDrawnMatches ( year ) { await Promise . all ( goals . map ( async ( goal ) => { const respone = await fetch ( `https://jsonmock.hackerrank.com/a
用户评论