This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// Inserts an element. Returns the number of new elements. | |
int insert(int arr[], int len, int num, int key) | |
{ | |
int i; | |
if (len == key) | |
{ | |
arr[key] = num; |