meaning of -vec.rbegin in my code for binary search?

后端 未结 0 534
名媛妹妹
名媛妹妹 2020-12-07 14:25
 ans+=lower_bound(vec.rbegin(),vec.rend(),0)-vec.rbegin();

Although its working i am not able to understand -vec.rbegin in this line here is functio

相关标签:
回答
  • 消灭零回复
提交回复
热议问题