deno.land / x / masx200_leetcode_test@10.6.5 / check-if-all-characters-have-equal-number-of-occurrences / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
import { groupBy } from "../deps.ts";
export default function areOccurrencesEqual(s: string): boolean { //@ts-ignore return new Set(Object.values(groupBy(s)).map((a) => a.length)).size === 1;}
masx200_leetcode_test

Version Info

Tagged at
a year ago