---
title: "Discussion on \"Binary Search - Leetcode 704 - Python Solution\" | Hashnode"
description: "Discussion on \"Binary Search - Leetcode 704 - Python Solution\". Hey Everyone, today we will solve how to find a number in a sorted array according to its target using Binary Search.\nStep-1\nInitialize the start pointer at the beginning of the array and the end pointer at the end of the array.\ndef binary_search(num..."
url: "https://hashnode.com/posts/binary-search-leetcode-704-python-solution/66e400eb2d0e53a8d788a073"
---

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

Discussion

# [Binary Search - Leetcode 704 - Python Solution](https://kmdshojib.hashnode.dev/binary-search-leetcode-704-python-solution?utm_source=hashnode&utm_medium=feed)

Hey Everyone, today we will solve how to find a number in a sorted array according to its target using Binary Search. Step-1 Initialize the start pointer at the beginning of the array and the end pointer at the end of the array. def binary\_search(num...

Sep 13, 2024 · 2 min read · kmdshojib.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#binary-search-algorithm](https://hashnode.com/tag/binary-search-algorithm)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Shojib](https://hashnode.com/@kmdshojib)

@kmdshojib

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

Front end developer

Hey, I'm Kamruzaman Shojib and I'm a front-end developer. I love to talk about tech mostly I'll be writing about JavaScript and trying to help the community.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
