CPharderthanDarkSouls's blog

By CPharderthanDarkSouls, history, 2 years ago, In English

You are given an array , can perform two operations -if the size is greater than 1 choose two distinct elements and remove both of them -or remove a single element N — 10^5 , 1 <= arr[i] <= 10^9 Find the minimum operations to make array empty. TC — N=5, arr -> 1,2,2,3,5 Output -> 3 Explanation -> (1,2) (2,3) 5

What will be the approach of this ?

Full text and comments »

By CPharderthanDarkSouls, history, 4 years ago, In English

i have to do a "summer training" as it is mandated by our college so i came across various "courses" for CP(and they are quite expensive too) but i feel like all this is just business and they mostly target gullible students as they are mostly from lower tier colleges. Now i am confused whether to go for it or not , and as it is mandatory give your suggestions on various other courses or CP course which you think is reliable (NO PROMOTIONS PLEASE). (I am asking because i read few blogs on codeforces itself on how they are scamming and stuff)

Full text and comments »

By CPharderthanDarkSouls, history, 5 years ago, In English

In a program if i use /* int *a = new int [n] / (and using delete at the end), the compiler throws sigbart error but if i use / int a[n] */ it compiles successfully ,Why ?

program : https://ideone.com/e.js/lZfJuL

Full text and comments »