UNPKG

@bazilio-san/af-stream

Version:
15 lines 674 B
import { TSlot } from '../interfaces'; export declare const findSlotIntLEFT: (arr: number[], x: number) => TSlot; export declare const findSlotIntRIGHT: (arr: number[], x: number) => TSlot; export declare const findSlotIntBINARY: (arr: number[], x: number) => TSlot; /** * Searches for a place for an integer (x) in an array of integers (arr) sorted in ascending order. * Returns an array of 3 indices: [ <index of nearest smaller number | null>, <index of number equal to desired | null>, <index of nearest larger number | null> ] */ export declare const findSlotInt: (arr: number[], x: number) => TSlot; //# sourceMappingURL=find-slot-int.d.ts.map