BETA

Difficulty Level:

Basic

Total Submissions: 2048 Accuracy:

14.31%

Operating an array (Function Problem)
     

Given an array A[], 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 

Input:
First line of input consists if T, number of test cases. First line of every test case consists of an integer N, denotes the number of elements in an array. Second line of every test cases consists of N spaced integers Ai. Third line of every test case consists of three integers X ,Y , Yi and Z, denoting the elements for search operation, insert operation , insert opearion element inedx and delete operation respectively.

Output:
Return 1 for each operation if done successfully else 0.

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

Example:
Input:

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

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Saksham Raj Seth, Harshit Sidhwa


					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.