Numbers with same digit set in base 10 and base 16: Difference between revisions
Content deleted Content added
→{{header|JavaScript}}: Added a JavaScript version. |
|||
Line 705:
h = n.toString(16);
return eqSet(new Set(
new Set(
) ? [
`(${d}, ${h})`
Line 726:
const eqSet = a =>
// True if the two sets have
// the same
b => a.size === b.size && (
Array.from(a).every(x => b.has(x))
|