Skip to content

Instantly share code, notes, and snippets.

@chuma-beep
chuma-beep / day 1. Problem 704 binary search.md
Created January 2, 2026 14:09
day 1 of 365-day leetcode challenge to understand programming languages and DSA concepts

Binary Search

Question:
https://leetcode.com/problems/binary-search/

Problem

We are given a sorted array of integers nums (ascending order).
Write a function that searches for target in nums.

  • If target exists, return its index
@chuma-beep
chuma-beep / states-and-cities.json
Created January 15, 2024 13:03 — forked from mykeels/states-and-cities.json
Nigerian States and Cities in JSON
[
{
"name": "Abia",
"cities": [
"Aba South",
"Arochukwu",
"Bende",
"Ikwuano",
"Isiala Ngwa North",
"Isiala Ngwa South",