Number Circle [Challenge] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Number Circle [Challenge]

Here is a new kind of challenge ! You have to draw a number circle ! Like this:- 4 3 1 2 Note:Only non-web languages are welcome. Hint:Use a number limit to draw the circle properly. Best of Luck ! Happy Coding !

15th Feb 2018, 12:28 AM
Sujal Kumar
Sujal Kumar - avatar
3 Answers
+ 5
Here is my attempt in Kotlin. Supports entering 3 to 8 on beta app or web. Randomly picks a number on app 2.0.1. https://code.sololearn.com/cMtIQFMmwDXU
15th Feb 2018, 3:53 AM
John Wells
John Wells - avatar
+ 3
Limited to draw digits rather than numbers circle, but unlimited in size (since width -- diameter -- fit in output line width): enter radius size at parameter (radius 1 for a 3 lines by 7 characters circle -- as characters ratio width/height is near of 1/2)... valid values are integers greater or equal to 1. https://code.sololearn.com/cdxxNqGCEO8Z/?ref=app
15th Feb 2018, 6:04 AM
visph
visph - avatar
+ 1
I know that this challenge is the harder one. But don't forget that we should try everything once.
15th Feb 2018, 12:37 AM
Sujal Kumar
Sujal Kumar - avatar