giaminh8368's blog

By giaminh8368, 2 years ago, In English

Hello, Does C++ have a way to delete map key automatically when the mapped value is equal to zero? I'm tired to erase them by an if statement.

Sorry for my bad English :)

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By giaminh8368, history, 2 years ago, In English

Hello. I recently met this problem but can't solve it, please help me solve it.

Given an array of n integers.

There are q queries. Each query gives us a subarray from l to r.

Find the maximum occurrence of a number in the subarray.

(Sorry for my bad English :) )

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it

By giaminh8368, history, 3 years ago, In English

Hi, I just get saw this. It tells me that my Codeforces password is leak. Should I change my password?

Full text and comments »

  • Vote: I like it
  • +12
  • Vote: I do not like it