Please read the new rule regarding the restriction on the use of AI tools. ×

lower_bound vs upper bound

Revision en1, by michael_jordon, 2021-01-06 22:18:10

question link : https://codeforces.me/problemset/problem/459/D solution link: https://codeforces.me/contest/459/submission/103579274

here if i am using arr[i]=upper_bound(arr1.begin(),arr1.begin()+n1,arr[i])-arr1.begin(); than it is showing wrong answer . why?

pls help.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English michael_jordon 2021-01-06 22:18:10 315 Initial revision (published)