about | help | code help+videos | done | prefs |
When cooking, sometimes you must slice up some veggies, or maybe some mushrooms. In this method, we are cooking with non-negative integer numbers. We will slice these numbers up into their individual digits and return an array containing the digits in their original order. None of the input parameters will be negative and none will have more than 6 digits. Return an array of 6 integers representing the digits of the original number in their original order. foodNetSliced(537) → [0, 0, 0, 5, 3, 7] foodNetSliced(12829) → [0, 1, 2, 8, 2, 9] foodNetSliced(0) → [0, 0, 0, 0, 0, 0] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy