美文网首页
Search in Rotated Sorted Array

Search in Rotated Sorted Array

作者: sherrysack | 来源:发表于2018-06-01 10:34 被阅读0次

The hardest point lies in how to write the if sentence right. Because it is a rotated ascendingly sorted array, there are basic two kinds of conditions.
In each condition, we need to find the right circumstances that we move the h pointer and l pointer. It is a little tricky that in each condition you can only move one pointer instead of two.


Search in Rotated Sorted Array

相关文章

网友评论

      本文标题:Search in Rotated Sorted Array

      本文链接:https://www.haomeiwen.com/subject/mdyhsftx.html