---
title: "Discussion on \"Understanding binary search\" | Hashnode"
description: "Discussion on \"Understanding binary search\". Предлагаю решить задачу вместе: без спешки, с объяснением каждой строки.\nЗадача\nДан отсортированный список чисел arr и число target. Найти его индекс или вернуть -1, если элемента нет.\nРешение\ndef bin"
url: "https://hashnode.com/posts/understanding-binary-search-mwerfw21/6af6d4eee314ef0e3d0ad100"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding binary search](https://news-ctl-posts.hashnode.dev/understanding-binary-search-mwerfw21?utm_source=hashnode&utm_medium=feed)

Предлагаю решить задачу вместе: без спешки, с объяснением каждой строки. Задача Дан отсортированный список чисел arr и число target. Найти его индекс или вернуть -1, если элемента нет. Решение def bin

9h ago · 1 min read · news-ctl-posts.hashnode.dev  
Read the article

## Written by

[Scottie](https://hashnode.com/@ozalopa965)

@ozalopa965

  
[View profile](https://hashnode.com/@ozalopa965)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
