Binary search question : 2 ways to write mid, one gets AC but the other does not 
Difference between en1 and en2, changed 29 character(s)
Hi folks, ↵

While solving this question : [Packing Rectangles] (https://codeforces.me/edu/course/2/lesson/6/2/practice/contest/283932/problem/A)↵

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

1. Verdict : Failed on test case 7 : [Submission]([submission:290387733])↵
```
Python
 mid = l + (r - l)//2 ↵
```↵
<br />↵

2. Verdict : Accepted [Submission]([submission:290375710])↵
```
Python
 mid = (l + r) >> 1↵
```↵
<br />↵
Can someone explain what caused this because, I believe both are same

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English sahnigwl 2024-11-07 16:16:40 20 Tiny change: 'ieve both are same' -> 'ieve both should function the same'
en2 English sahnigwl 2024-11-07 16:16:01 29
en1 English sahnigwl 2024-11-07 16:15:16 602 Initial revision (published)