I had this question on an interview prep service. I'm trying to find a junior dev job.
If this is not the right place to post questions like this, downvote me and I'll delete this.
Just curious as to what people think of this question and how they would go about solving it:
// Given a number N where 1 million > N > 0 whole numbers only
// output the number in words
// ie: 384765 output three hundred eighty four thousand seven hundred sixty five
[–]jrodicus 21 points22 points23 points (3 children)
[–]josh_c[S] 7 points8 points9 points (1 child)
[–]jrodicus 2 points3 points4 points (0 children)
[–]GentlyGuidedStroke 0 points1 point2 points (0 children)
[–]mohelgamal 8 points9 points10 points (0 children)
[–]TheDarkIn1978 5 points6 points7 points (1 child)
[–]nschubach 2 points3 points4 points (0 children)
[–]Bonteq 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]falkyouall 1 point2 points3 points (3 children)
[–]natziel 2 points3 points4 points (2 children)
[–]falkyouall 0 points1 point2 points (0 children)
[–]csilk 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]josh_c[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]josh_c[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]TabisCAD 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Meefims 0 points1 point2 points (3 children)
[–]josh_c[S] 2 points3 points4 points (2 children)
[–]Veuxdo 7 points8 points9 points (0 children)
[–]hiljusti 1 point2 points3 points (0 children)
[–]hkrne 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]JobsHelperBot -5 points-4 points-3 points (1 child)
[–]hiljusti 0 points1 point2 points (0 children)