deno.land / x / masx200_leetcode_test@10.6.5 / shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { counter } from "../substring-with-concatenation-of-all-words/counter.ts";
function singleNumbers(nums: number[]): number[] { const cnt = counter(nums);
return Array.from(cnt) .filter((e) => e[1] === 1) .map((e) => e[0]);}export default singleNumbers;
masx200_leetcode_test

Version Info

Tagged at
a year ago