Industrial engineering interview questions shared by candidates
Asked to extract numbers from a list of alphanumeric strings. For example if string is "qw34rt56", new list should contain 34 and 56. New list should have unique numbers and should be in ascending order. They requested write complete code and tell over the phone.
I have used TreeSet data structure from Java to accomplish the task.
1. User regular expression to get the different numbers from the string, something like ([0-9]+)[^0-9] 2. Add the numbers to a main array 3. Sort the array. 4. Remove duplicate entries.
See Interview Questions for Similar Jobs
- Account Executive
- Mechanical Engineer
- Truck Driver
- Pharmacy Technician
- Social Worker
- Human Resource
- Pharmaceutical Sales
- Graphic Designer