You shouldn't be..At least on Ranch.however,if you think your problem is different from the given thread topic then feel free to create a new topic(just like a single responsibility principle).
Carlos wrote:@Praveen: i want to apologise...
praveen kumaar wrote:You shouldn't be..At least on Ranch.however,if you think your problem is different from the given thread topic then feel free to create a new topic(just like a single responsibility principle).
Now you have already one task to make it as staightforward like mine.
Carlos wrote:It's not as straightforward as Praveens (it has one more variable declaration, if statement and method call) but also gets to the final desired output.
I would not agree.i know their are 2 symmetries and i have used both of them.actually their is some math indulged here in my case the horizontal symmetry is like below:
Carlos wrote:I saw that you used the symmetry in your star printer... But honestly there are 2 symmetries there: one vertical (the one you used) and one horizontal: the bottom half is a symetry of the top one.
praveen kumaar wrote:Now you have already one task to make it as staightforward like mine.
Carlos Reves wrote:
But honestly in my opinion this is even worse. Don't like it at all.
Carlos Reves wrote:@Junilu: don't like those return statements with the condicionals. I may be wrong but i find them harder to understand.
I've eliminated the variable and the method call but for that now i have 2 conditionals.
Carlos Reves wrote:@Junilu: regarding the Shu Ha Ri... I'm definitely in the Shu phase!
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Appshttps://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous