Geeksforgeeks

Error

×

Leaderboard

Showing:

Handle | Score |
---|---|

@Ibrahim Nash | 5725 |

@blackshadows | 5685 |

@akhayrutdinov | 5111 |

@mb1973 | 4989 |

@Quandray | 4908 |

@saiujwal13083 | 4156 |

@sanjay05 | 3762 |

@marius_valentin_dragoi | 3511 |

@sushant_a | 3453 |

@KshamaGupta | 3318 |

@the_coder95 | 3302 |

Complete Leaderboard | |

Handle | Score |

@avaiesshaik782 | 786 |

@arpitsatnalika | 777 |

@tujhekya | 602 |

@prakharxyz | 601 |

@code_it_ | 591 |

@iamronak | 505 |

@imnm | 500 |

@pradeepkumarjad | 488 |

@satyam0460 | 481 |

@nitesha125 | 468 |

@Rahul Jadhav 1 | 466 |

Complete Leaderboard |

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

Login to report an issue on this page.

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

Yes
Operating an array

...

Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.