|@Rahul Jadhav 1||466|
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.
The first line of input consists of T, the number of test cases. T testcases follow. Each testcase contains 3 lines of input. The first line of every test case consists of an integer N, denotes the number of elements in an array. The second line of every test cases consists of N spaced integers Ai. The third line of every test case consists of four integers X, Y, Yi and Z, denoting the elements for the search operation, insert operation, insert operation element index and delete operation respectively.
For each testcase, return 1 for each operation if done successfully else 0.
Since this is a function problem, you only need to complete the provided functions.
1 <= T <= 100
1 <= N <= 100
1 <= Ai <= 100
2 4 1 0 6
1 2 2 0
1 1 1
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?Yes