This week's missions: Domino Chain and Currency Style
Hello CheckiO users! 🙂
💪 Challenge yourself with our latest missions on the Mine station:
The first mission is called Domino Chain and here you'll have to count how many complete chains you can make using all of the given dominoes and following the conditions.
dominoChain('0-2, 0-5, 1-5, 1-3, 5-5') == 1 dominoChain('1-5, 2-5, 3-5, 4-5, 3-4') == 2 dominoChain('0-5, 1-5, 2-5, 3-5, 4-5, 3-4') == 0 dominoChain('0-1, 0-2, 1-3, 1-2, 3-4, 2-4') == 6 dominoChain('0-1, 0-2, 1-3, 1-2, 3-4, 2-4, 3-0, 0-4') == 0
The second is the Currency Style mission where you need to convert dollars from the one style of using the thousands separator and decimal mark to the different style.
currencyStyle('$5.34') == '$5.34' currencyStyle('$5,34') == '$5.34' currencyStyle('$222,100,455.34') == '$222,100,455.34' currencyStyle('$222.100.455,34') == '$222,100,455.34' currencyStyle('$222,100,455') == '$222,100,455'
💡 Highlights from the JS world:
Welcome to CheckiO - games for coders where you can improve your codings skills.
The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.Join the Game