1. Please write a method to normalize a string which represents a file path. For the purposes of this question, normalizing means: • all single dot components of the path must be removed. For example, "foo/./bar" should be normalized to "foo/bar". • all double dots components of the path must be removed, along with their parent directory. For example, "foo/bar/../baz" should be normalized to "foo/baz". That's it. Normally, a path normalization algorithm would do a lot of other stuff, but for this question, don't try any other kind of normalization or transformation of the path. As an example, "foo//bar" should be normalized to "foo//bar" (i.e. a no-op). Use any language you feel comfortable in, we prefer Java, but it’s not required. The method should take in a string (or whatever passes for a string in the language of your choice) and return a string representing the normalized path. Please write code that you feel proud of and would check in to source control in a professional environment. 2. Once you have completed the exercise, please create ten (or more!) test cases you would you use to test the method.
Software Qa Engineer Interview Questions
4,621 software qa engineer interview questions shared by candidates
What is the difference between White Box testing and Black Box testing?
1. Hash tables concepts and implement a hash table 2. circular linked list 3. Write test cases for a registration form 4. Level order traversal 5. Determine if given string is palindrome
Asked What projects and technologies I worked on?
You have two bottles, 5-litre and 3-litre, and infinite amount of water. How do you measure exactly 4 liters of water?
Given a random, unknown number between 1-1000, what is the minimum number of questions needed to get the correct number? You may only ask questions that have Yes or No as an answer
I can't quite remember, but it was along the lines of solving for 2 variables with only one expression...
Java Strings and FileReader questions
they asked about mostly, 802.11r, 11ac-wave2
Write a function that removes substrings.
Viewing 31 - 40 interview questions