Opening your workspace…
Workspace/Coding room
Opening your workspace…
Nell can print a whole sign in one squeeze of her little press, provided she owns every letter it needs. Her case holds one metal stamp for each letter of the alphabet. The E stamp prints either e or E depending on which end she inks. Given the letters in order, return true if Nell can set the entire sign without using any stamp twice. An empty sign is within her means.
"Plum"OUTPUTtrueFour different drawers supply the sign.
"TeaSet"OUTPUTfalseThe last t needs the same stamp as the first T.
Keep track of which drawers are already empty.
/** @param {string} order * @returns {boolean} */ function solve(order) { // Write your answer here. }
Tab inserts two spaces. Shift+Tab outdents. Use the arrow keys and Tab to choose a suggestion. Press Escape, then Tab, to leave the editor. Press Control or Command with apostrophe to run samples or with Enter to submit.
"Plum"true