Тёмный

AtCoder Beginner Contest 299 - Solutions to ABCDE (in 34min) 

Mitko Nikov
Подписаться 3,4 тыс.
Просмотров 445
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@loserraiyan
@loserraiyan Год назад
Hi, Can you please explain problem D? I mean if we just L (low) why this will work? I don't get the logic here please reply
@MitkoNikov
@MitkoNikov Год назад
That's a very ordinary Binary Search problem. You want to quickly search where is the boundary between 0s and 1s. You need to print the index of the last 0. The way I code Binary Search is that L is a border which is always VALID to print and R is the border which is INVALID. So, when I print L, its exactly the index of the last 0. At the end of the video, there are more detailed explanations for each problem including D. This is only my implementation of Binary Search, other implementations might work differently. I hope this answers the question.
@Alikhan_Zhamankhan
@Alikhan_Zhamankhan Год назад
What did you do at the beginning with main? I mean how did you call it with just writing main?
@MitkoNikov
@MitkoNikov Год назад
It's a snippet that writes the code for you. You can create them in VSCode.
@ruiuniver4
@ruiuniver4 Год назад
what is that plugin that test the code?
@MitkoNikov
@MitkoNikov Год назад
CPH Judge for VSCode
@MitkoNikov
@MitkoNikov Год назад
@@sagnikghoshcr7 This is GitHub Copilot, I had a technical preview a year ago, and I still haven't removed the extension. I don't pay for it now, so I don't have access to it. It's kinda useless to me for competitions, since I write my code faster and clearer without it. :D
Далее
5 (Extreme) Performance Tips in C#
12:26
Просмотров 75 тыс.
Офицер, я всё объясню
01:00
Просмотров 3,9 млн
Se las dejo ahí.
00:10
Просмотров 2,2 млн
▼ КАПИТАН НАШЁЛ НЕФТЬ В 🍑
33:40
Просмотров 260 тыс.
ASMR Programming - Spinning Cube - No Talking
20:45
Просмотров 3,9 млн
How I Got Good at Coding Interviews
6:29
Просмотров 1,6 млн
100+ Computer Science Concepts Explained
13:08
Просмотров 2,5 млн
Python vs C++ Speed Comparison
1:04
Просмотров 2,1 млн