Find The Index Of K In A Sorted Array OR Where It Belongs To Keep It Sorted | C Programming Example

preview_player
Показать описание

Original question: Given a sorted array arr[] consisting of N distinct integers and an integer K, the task is to find the index of K, if it’s present in the array arr[]. Otherwise, find the index where K must be inserted to keep the array sorted.
Рекомендации по теме
Комментарии
Автор

how would you use an id declared in a structure to read 2 different txt files for specific data, then display the data for the person ?

iamtev