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.
Sr Test Engineer Interview Questions
164 sr test engineer interview questions shared by candidates
Preguntas relacionadas con Quality, procesos, integracion continua, etc, etc
How do you perform API testing and HTTP methods
What is the reason you are looking to leave your current employer?
Explain your project. what is the design frame work of your project?
string, data structure related questions.
What is Functional testing, What is UAT, what are the testing technic
How did you Implement Selenium WebDriver
What is Difference between Retesting and Regression?
How will you start performance testing of a new application?
Viewing 21 - 30 interview questions
See Interview Questions for Similar Jobs
Senior Test EngineerQa Test EngineerSoftware Development Engineer TestSoftware Design Engineer TestSelenium Automation Test EngineerHoofd Test EngineerSenior Testing EngineerSenior Test LeadSenior Test Automation EngineerSoftware Development Engineer In Test SdetLead Test EngineerSystems Software Test EngineerSoftware Engineer TestingTechnical Test LeadTest LeadSenior Software Engineer TestTestingSenior Software Systems Test Engineer