sahnigwl's blog

By sahnigwl, history, 4 hours ago, In English

Hi folks,

While solving this question : Packing Rectangles

I submitted two codes which basically did the same thing, the only difference was :

  1. Verdict : Failed on test case 7 : Submission mid = l + (r - l)//2

  2. Verdict : Accepted Submission mid = (l + r) >> 1
    Can someone explain what caused this because, I believe both should function the same

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

»
4 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by sahnigwl (previous revision, new revision, compare).

»
4 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by sahnigwl (previous revision, new revision, compare).