In a language of your choice, please provide a solution for the following problem. Problem: Given a sorted array of non-zero integers, remove the duplicate elements from the array and return the number of unique elements found. At the end of your algorithm, the array should contain unique elements. If the number of unique elements is less than the size of the array, fill the remaining indices with 0. For example: ex. Input - arr[] = {1, 2, 2, 3} ex. Output - arr[] = {1, 2, 3, 0} - return 3 ex. Input - arr[] = {1, 1, 1, 1} ex. Output - arr[] = {1, 0, 0, 0} - return 1 You should include your algorithm in the removec Duplicates method, whose inputs are the array and the length of the array.
Senior Testing Engineer Interview Questions
2,827 senior testing engineer interview questions shared by candidates
1) Very easy - Find a duplicate number in an array 2) More technical about their testing scenario - specific knowledge required of the product related
I cannot disclose them here for confidentiality reasons.
Questions related to Data structure, LinkedList, Selenium, TestNG Problem 1: for given integer array, find the maximum number which is formed using these integers i.e { 2,20,31,4,6,8} ==> 86431220 Problem 2: for a given integer array {4, 3, 5, 5, 5, 1, 3, 0, 2, 0} , Find maximum occurrence of number and sort it according to decreasing order i.e { 5=3, 3=2, 0=2, 4=1, 1=1} Question 3: write the cases for deleting an element from Singly linked list and doubly linked list Other question like write the cases for Payment Gateway etc
Preguntas relacionadas con Quality, procesos, integracion continua, etc, etc
How do you perform API testing and HTTP methods
Am I ready for sudden overtimes and seldom working on holidays?
Am I ready to move to Moscow?
- Testspezifikation/Testfalle erstellung von Anforderung - Programmierung von ein String in rückwärts - Was ist Ergebnis von diese python Code
Problem solving skills & approach
Viewing 401 - 410 interview questions