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.

**Input Format:**

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 **A _{i}**. The third line of every test case consists of four integers

**Output Format:**

For each testcase, return 1 for each operation if done successfully else 0.

**Your Task:**

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

**Constraints:**

1 <= T <= 100

1 <= N <= 100

1 <= A_{i} <= 100

**Example:
Input:**

1

5

2 4 1 0 6

1 2 2 0

1 1 1

Author: saksham seth

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

the_coder95 | 465 |

thanuvinu94 | 384 |

ShivayLamba | 256 |

adityasuman2025 | 249 |

PrakharBansal1 | 236 |

the_coder95 | 1691 |

RishabhTanwar1 | 1110 |

thanuvinu94 | 1060 |

samay_kam_hai | 724 |

themanhasnoname | 620 |

blackshadows | 5331 |

Ibrahim Nash | 5219 |

akhayrutdinov | 5111 |

mb1973 | 4897 |

Quandray | 4547 |

Login to report an issue on this page.