How to use array.prototype.reduce() with TypeScript while having a boolean accumulator as the initial value?

后端 未结 0 664
再見小時候
再見小時候 2020-12-03 02:08

I was going about solving some algos on binarysearch.io and came across this problem:

I solved it using JS as follows:

class Solution {
    sol         


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