deno.land / x / masx200_leetcode_test@10.6.5 / maximum-number-of-words-found-in-sentences / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
export default function mostWordsFound(sentences: string[]): number { return Math.max( // deno-lint-ignore ban-ts-comment //@ts-ignore ...sentences.map((s) => // deno-lint-ignore ban-ts-comment //@ts-ignore Array.prototype.reduce.call(s, (a, v) => a + Number(v === " "), 1) ), );}
masx200_leetcode_test

Version Info

Tagged at
a year ago