How to optimize for loop inside for loop using Java 8

后端 未结 0 1023
走了就别回头了
走了就别回头了 2020-12-24 15:23

Scenario: To find How many times numbers gets divisible by 60 from the arrayList

Sample: [20,60,40,100] - output: 2 ( 20+40, 20+100 )

Sample: [20,60,40,100,20]

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