rajutsav1234's blog

By rajutsav1234, history, 3 years ago, In English

Role of container in priority_queue of C++ STL.

Why vectors are used in container.

And what are advantages and disadvantages if I use deque instead of vector.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By rajutsav1234, history, 3 years ago, In English

which is faster:

  • Sorting a vector
  • Or using a priority queue

Full text and comments »

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

By rajutsav1234, history, 3 years ago, In English

I was solving problem link . My code runs fine on my other compilers. But It fails on same testcases on CF online Judge. Here is my solution link.[submission:112599418][submission:112599418] In the code, at one line I had checked if a double is integer or not. I am not able to figure out why is it happening so. Please help.

Full text and comments »

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