Skip to content

Instantly share code, notes, and snippets.

View sunil-bagde's full-sized avatar

Sunil Bagde sunil-bagde

View GitHub Profile
@sunil-bagde
sunil-bagde / revision-grokking-algoithms.md
Created November 7, 2024 14:46
revision-grokking-algoithms

Chapter 1

Binary search

divide array into sub parts until target is found

function binarySearch(nums, target) {

let low = 0
import React, { ReactNode } from "react";
type UlProps = {
children: ReactNode;
className?: string;
listStyle?: string;
};
type LiProps = {
children: ReactNode;