C. Ntarsis' Set | Codeforces Round 887 (Div. 2) | Codeforces | DCC NIT-A

  Рет қаралды 4,065

DCC NITA

DCC NITA

Күн бұрын

Codeforces Round 887 (Div. 2) || C. Ntarsis' Set Solution || Chetan Saini
Problem : codeforces.com...
Solution : codeforces.com...
We highly recommend you to go through the question once, try to solve it by yourself and in case you get stuck revert back to this video for detailed explanation and solution to the problem.
Welcome to NIT Agartala’s Developers & Coders Club channel. Do subscribe our channel to get more such updates and also like the video if you find it helpful. Also comment down below sharing your thoughts, all constructive criticisms are welcomed.
Happy Coding!

Пікірлер: 37
@Rahulkumar-fb8fi
@Rahulkumar-fb8fi Жыл бұрын
Thank you so much for this helpful video, please keep posting 🙏
@harshitmakhija6817
@harshitmakhija6817 5 ай бұрын
This video is indeed helpful, thanks :)
@nitishkushwaha3821
@nitishkushwaha3821 Жыл бұрын
just brilliant surely 1600 question i guess.
@sarthakgupta5168
@sarthakgupta5168 Жыл бұрын
great explanation buddy please improve audio
@muhammadosamafahim7019
@muhammadosamafahim7019 Жыл бұрын
can you please tell how 1e12 can be the maximum value of the number which can be left out ?
@DCCNITA
@DCCNITA Жыл бұрын
In the worst case scenario, there will be total N = 1e5 elements and every element between 1 to N is there. (Like : 1,2,3,...,1e5) And value of K is 1e5. So, after K days, N*K elements will be removed, which means we will get our answer after N*K surely. So that is 1e10, but for not making tight values, I made that 1e12.
@khalilshaik6161
@khalilshaik6161 Жыл бұрын
I initially had the same doubt : we are continuously decreasing mid, that makes a difference.
@muhammadosamafahim7019
@muhammadosamafahim7019 Жыл бұрын
very intutitive approach yrrr
@DCCNITA
@DCCNITA Жыл бұрын
Thanks ❣
@utkarshsharma1185
@utkarshsharma1185 Жыл бұрын
Thanks for explanation, my java code in-case anyone finding it hard to read the code mentioned in the video. while (t-- >0){ int n = fs.nextInt(); int k = fs.nextInt(); int arr[] = new int[n]; int ones= 0; for(int i=0;i
@ahsanhabibswassow8407
@ahsanhabibswassow8407 Жыл бұрын
if (mid < 0) return false; can you please explain? Thanks((:
@rajmittal5394
@rajmittal5394 11 ай бұрын
One small suggestion, in start 9 min there is nothing much . Just stick to the main part don't make such long video of just one question .
@phamdacthanh3298
@phamdacthanh3298 Жыл бұрын
Thanks, nice video explaination
@DCCNITA
@DCCNITA Жыл бұрын
Thanks ❣
@mohitmalik4610
@mohitmalik4610 Жыл бұрын
very good explanation thanks
@DCCNITA
@DCCNITA Жыл бұрын
Thanks ❣
@NileshKumar-dv8jg
@NileshKumar-dv8jg Жыл бұрын
🔥🔥🔥🔥
@DCCNITA
@DCCNITA Жыл бұрын
Thanks ❣
@mukundshah1314
@mukundshah1314 Жыл бұрын
Why we adding x in tot..tot shouldnt be the max of x
@DCCNITA
@DCCNITA Жыл бұрын
X is the total number of days on which that particular a[i] will contribute in that range. So, just suppose for 5 days, some a[i] is contributing, then for these 5 days all elements from 0 to i will contribute. After that, we will check that for how many days a[i-1] is contributing. This is after changes of last 5. So we adding all numbers.
@Vikassharma-rq5bh
@Vikassharma-rq5bh Жыл бұрын
Not getting clear explanation second time.I think this question is not for me at this moment.😅
@utsavaggrawal2697
@utsavaggrawal2697 Жыл бұрын
nice explanation thank you
@DCCNITA
@DCCNITA Жыл бұрын
Thanks ❣
@GauravSingh-wi5pc
@GauravSingh-wi5pc Жыл бұрын
in check function there is not need to check if (mid
@mohitmalik4610
@mohitmalik4610 Жыл бұрын
yes beacuse a[0] = 1
@DCCNITA
@DCCNITA Жыл бұрын
Ya, I added a[0] = 1 later. So ...
@muhammadosamafahim7019
@muhammadosamafahim7019 Жыл бұрын
Also why lo is set to 1 ?
@DCCNITA
@DCCNITA Жыл бұрын
Because the minimum element is 1.
@muhammadosamafahim7019
@muhammadosamafahim7019 Жыл бұрын
@@DCCNITA oh okay I set it to 0 and still it ran
@prabhu__why_not
@prabhu__why_not Жыл бұрын
ox days
@CodeTillEternity
@CodeTillEternity Жыл бұрын
i didnt got it maybe i am really dumb
@utkarshsharma1185
@utkarshsharma1185 Жыл бұрын
just chill bhai
@CodeTillEternity
@CodeTillEternity Жыл бұрын
@@utkarshsharma1185 hnji
@xarma
@xarma Жыл бұрын
nice
@DCCNITA
@DCCNITA Жыл бұрын
Thanks ❣
@witty_reflections6
@witty_reflections6 Жыл бұрын
Orz
@DCCNITA
@DCCNITA Жыл бұрын
Thanks ❣
Codeforces Round 885 Div 2 | A B C | Video Editorial C++
39:07
cpwithcpp
Рет қаралды 3,5 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Codeforces Round 919 (div 2) | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
1:14:55
Codeforces Round 887 Div 2 | A B | Video Editorial C++
18:58
cpwithcpp
Рет қаралды 3,3 М.
Why I Prefer Exceptions To Errors
1:05:31
ThePrimeTime
Рет қаралды 102 М.
7 Amazing CLI Tools You Need To Try
18:10
Josean Martinez
Рет қаралды 338 М.
Whiteboard Coding Interviews: 6 Steps to Solve Any Problem
15:18
Fullstack Academy
Рет қаралды 370 М.
CodeTON Round 5 (Div-1 +Div2)  Solutions || Problems A,B,C,D and E
1:08:27
The Brief History of Programming Languages
15:36
Byte of Michael
Рет қаралды 182 М.