X

DAYS

:

HOUR

:

MINS

:

SEC

Copied to Clipboard
Operating an array
Basic Accuracy: 40.73% Submissions: 27829 Points: 1

Given an array A of size N, your task is to do some operations, i.e., search an element, insert an element, and delete an element by completing the functions. Also, all functions should return a boolean value.

Note: In delete operation return true even if element is not present.

Example:

Input:
5
2 4 1 0 6
1 2 2 0
Output:
1 1 1

Your Task:
Since this is a function problem, you only need to complete the provided functions.

Constraints:
1 <= T <= 100
1 <= N <= 100
0 <= Ai <= 1000

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.

Operating an array

Output Window