+ 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 :)
9 Antworten
+ 3
Plz challenge in java
+ 1
The second argument is the number of lines or the maximum length?
+ 1
@Marfi this is just an exanple,
+ 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?
+ 1
Here is my solution, but I use two functions. Yea!
https://code.sololearn.com/c5H8PBs6puZz/?ref=app
+ 1
thank you Marfik Em for your participation :) good job ! here is my answer, using python :
https://code.sololearn.com/cTi91q3IT73B/?ref=app
0
@Nikhil Gowda you can code this in java :)
- 1
ok, I m newbie