День 3
Jon Snow
3 января 2018, 11:15

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 :)

Нравится? Расскажите друзьям!
Комментировать
Перейти к записи в ленте
Цель

Вы тоже можете
опубликовать свою
цель здесь

Мы поможем вам ее достичь!

310 000

единомышленников

инструменты

для увлекательного достижения

Присоединиться
Регистрация

Регистрация

Уже зарегистрированы?
Быстрая регистрация через соцсети
Вход на сайт

Входите.
Открыто.

Еще не зарегистрированы?
 
Войти через соцсети
Забыли пароль?