deno.land / x / masx200_leetcode_test@10.6.5 / jewels-and-stones / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export default function numJewelsInStones( jewels: string, stones: string,): number { const set = new Set(jewels);
// deno-lint-ignore ban-ts-comment //@ts-ignore return Array.prototype.reduce.call( stones, // deno-lint-ignore ban-ts-comment //@ts-ignore (a, v) => a + Number(set.has(v)), 0, );}
masx200_leetcode_test

Version Info

Tagged at
a year ago