Is it possible to optimize my js hashmap challenge to merge two .forEach loops?

后端 未结 0 1047
长发绾君心
长发绾君心 2021-01-30 05:09

Is it possible to merge the two arr.forEach() functions in my code together?

Here is my code:

function countTriplets(arr, r) {
    let count = 0;
    let f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题