Цель заморожена
Автор цели 26 июня 2018 года заморозил цель
Дневник цели

I solved another task on Easy level. It's called ASCII Art.
This one required string knowledge, and I've done it without any trouble. The only trouble is in my barocco style, which considered using too many variables and two IndexOf checks. Well... quite good, but I can do better
(actually, I didn't sleep today at all, so, maybe, it's the reason of doing some weird shit in my code :) )
In the best solution, my code was rewritten in one string (screen 5).





Another task for today is done!
This one was pretty easy. The main difficulty was to understand that vertical speed is not just <value>, but it's actually -<value> in game system.
Best-practice solutions are likely the same, varying the way to show a single condition. Well, yes, this task was much easier than others.






For the first post in this feed, there's the link to my profile.
Yeah, I'm still Jon Snow in Codingame.
You can check my progress there.
I've already completed 2 tasks on Easy level before. They're quite easy, `cause most of the game is a part of editor interactivity, and I only need to complete a small part of script.
Today, I've been completing task 3 in 20 minutes approximately. The most ugly thing is knowing nothing about most-used algorithms of fast-sorting. Not saying that I completely stuck there. But the time when I found the way of sorting in my memories or invented some unicycles is definitely not good.
But, this task was quite easy, I think it's easier than 2 that I've already completed.
My code is in barocco style, :) `cause there are 3 arrays instead of one :) But it's not the worst solution entirely. Do you see there (screen 2) any issues to fix?
I took a look at the best solution there (copied it into screen 5). Damn it! He's using LINQ too, but hey, HOW did I forget about FirstOrDefault() and ThenByDescending()? Well, it's some kind of lesson for me.
I hope I'll remove this 'dumb' trait from my personality with the experience of Codingame walkthrough :)




