Блог пользователя CPharderthanDarkSouls

Автор CPharderthanDarkSouls, история, 21 месяц назад, По-английски

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 ?

Полный текст и комментарии »

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

Автор CPharderthanDarkSouls, история, 4 года назад, По-английски

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)

Полный текст и комментарии »

  • Проголосовать: нравится
  • -16
  • Проголосовать: не нравится

Автор CPharderthanDarkSouls, история, 4 года назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится