---
title: "Discussion on \"Solving and testing binary search (part 611c)\" | Hashnode"
description: "Discussion on \"Solving and testing binary search (part 611c)\". Разберём решение и сразу накроем его тестами — это хороший стиль работы с кодом.\nЗадача\nДан отсортированный список чисел arr и число target. Найти его индекс или вернуть -1, если элемента нет.\nРешение"
url: "https://hashnode.com/posts/solving-and-testing-binary-search-part-611c/6ad6d2badb12aa209a52f681"
---

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

Discussion

# [Solving and testing binary search (part 611c)](https://news-ctl-posts.hashnode.dev/solving-and-testing-binary-search-part-611c?utm_source=hashnode&utm_medium=feed)

Разберём решение и сразу накроем его тестами — это хороший стиль работы с кодом. Задача Дан отсортированный список чисел arr и число target. Найти его индекс или вернуть -1, если элемента нет. Решение

Oct 20 · 2 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.
