Vishnu S Reddy
  • Home
  • About
Subscribe
Tagged

Binary Search

A collection of 1 post

#704 - Binary Search - LeetCode
LeetCode

#704 - Binary Search - LeetCode

Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1.

  • Vishnu S Reddy
Vishnu S Reddy Mar 22, 2022 • 2 min read
Vishnu S Reddy © 2022
  • Data & privacy
  • Contact
Powered by Ghost