+ 5

Challenge for begginers

Hi :) here is a little challenge for begginers to pratice algorithm, Your job is to code one fonction that will output this : * ** *** or this : *** ** * ** *** or.. this : ** * ** *** ** * ** depending of the arguments you give to it. example : >>>starPattern(1,3) * ** *** No langage imposed, the choice is yours, good luck and enjoy :)

10th Sep 2017, 9:50 AM
Zit Zittoun
Zit Zittoun - avatar
9 Antworten
+ 3
Plz challenge in java
5th Oct 2017, 2:13 AM
Nikhil Gowda
Nikhil Gowda - avatar
+ 1
The second argument is the number of lines or the maximum length?
11th Sep 2017, 2:44 AM
Marfik Em
Marfik Em - avatar
+ 1
@Marfi this is just an exanple,
11th Sep 2017, 4:09 AM
Zit Zittoun
Zit Zittoun - avatar
+ 1
I'm confused, with starPattern(1, 3) it looks pretty straightforward but the other 2 are not so straightforward. What do the arguments represent?
11th Sep 2017, 12:59 PM
Vari93
Vari93 - avatar
+ 1
Here is my solution, but I use two functions. Yea! https://code.sololearn.com/c5H8PBs6puZz/?ref=app
16th Sep 2017, 4:48 AM
Marfik Em
Marfik Em - avatar
+ 1
thank you Marfik Em for your participation :) good job ! here is my answer, using python : https://code.sololearn.com/cTi91q3IT73B/?ref=app
16th Sep 2017, 5:25 AM
Zit Zittoun
Zit Zittoun - avatar
0
@Nikhil Gowda you can code this in java :)
5th Oct 2017, 4:04 AM
Zit Zittoun
Zit Zittoun - avatar
- 1
ok, I m newbie
10th Sep 2017, 4:56 PM
\__(° = °)__/