HNS_17502's blog

By HNS_17502, history, 2 years ago, In English

Hello everyone, I was solving question 1521B and then I submitted my solution. In test case 2, my solution exceeded time limit and after that I referred to editorial. My Solution and editorial solution are having same time complexity of O(n). Can anyone help me with what's wrong with my solution?

My solution link:- 136682985 Editorial link:- Editorial

Full text and comments »

Tags tle
  • Vote: I like it
  • -13
  • Vote: I do not like it

By HNS_17502, history, 2 years ago, In English

Hello everyone,

For question 1512C I am getting a wrong answer for test case 2 for the following code My_Solution. Can anyone guide me for which test case my code is not working? Thanks in advance :) .

Full text and comments »

  • Vote: I like it
  • -23
  • Vote: I do not like it