Associate software engineer interview questions shared by candidates
Write a function to go through an array and count how many numbers are repeated and return this number.
use a nested for loop to go pull one number from the array and compare it to the rest of the array and so on.
The other answer sort of works, but is absurdly inefficient and would probably lose you points. Iterate over each element in the array and check/store against a hash table. If the element is not present, insert it with the integer as the key and "false" as the value. If the element is present, and the value is "false," increment a counter and set the value to "true." If the element is present and the value is "true," do nothing.
See Interview Questions for Similar Jobs
- Software Engineer
- Embedded Software Engineer
- Senior Software Engineer
- Software Developer
- Software Development Engineer
- Principal Engineer
- Associate Software Engineer
- Senior Embedded Software Engineer
- Associate Software Test Engineer
- Project Manager
- Software Engineer Associate
- Software Engineering Intern
- Technical Consultant
- Product Manager
- Staff Engineer
- Systems Engineer