Skip to content

Create 153. Find Minimum in Rotated Sorted Array.md#1

Open
Kitaken0107 wants to merge 1 commit intomainfrom
Kitaken0107-patch-1
Open

Create 153. Find Minimum in Rotated Sorted Array.md#1
Kitaken0107 wants to merge 1 commit intomainfrom
Kitaken0107-patch-1

Conversation

@Kitaken0107
Copy link
Copy Markdown
Owner

@sakupan102
Copy link
Copy Markdown

書かれているもの自体は良いと思いました。

:type nums: List[int]
:rtype: int
"""
left, right = 0, len(nums) - 1
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらは半開区間でやってもよいかもしれないですね。

Copy link
Copy Markdown

@Exzrgs Exzrgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良いと思います。
ドキュメントちゃんと読んでるのも良いですね
あとはsakupan102さんがおっしゃっているように区間のバリエーションを試してみると良いかもしれないです

https://docs.python.org/ja/3/library/bisect.html#module-bisect
参考②:
https://github.com/sakzk/leetcode/pull/7/commits/375feba30bee21886052%E3%81%82a7f5b13669cd5f21141d#diff-29d64704d24b59fec75aa3e72952d76c483c0f52d75396d1cee6e59195e761e8R6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

もうちょっと、何を考えてこのコードが出てきているかを記述したほうがいいかと思います。
葛藤が見られないとコメントのしようがあまりありません。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants