Normalize a file path/directory: /// /// /// Normalizes the path, meaning that you reduce any unnecessary directory. /// For example, given the value notneeded1/notneeded2/../../hello you would /// return hello. /// /// /// input string /// Normalized string /* * Sample Directory structure * - home * -- documents * -- desktop * -- myMedia * ----- photos * ----- videos * ----- music * -- downloads * /home/myMedia/photos/../../documents -> /home/documents * /home/myMedia/photos/../documents/.. -> /home/myMedia * /home/myMedia/../documents -> /home/documents * ../home -> ../home * home/../../final -> ../final * /home/myMdeia/documents -> /home/myMdeia/documents * Case 1: * C:\ [current working directory] * cd hello [command operating on cwd] * C:\hello [final path] * Case 2: * C:\ [current working directory] * cd notneeded1/notneeded2/../../hello [command operating on cwd] * C:\hello [final path] */
Desenvolvedor C Junior Interview Questions
5,483 desenvolvedor c junior interview questions shared by candidates
some syntax questions and one algorithm question in c++
Final , Finally, Finalize String manipulation Questions
Tell me a project for which you are proud of
A memorable debug experience. Explain step by step
About internship and projects mentioned in resume.
Flexible for Reallocation and Rotational Shift
Diff between list, tuple,set Aptitude question
What is List? describe functionalities.
Q1. Quick sort algorithm and Merge sort algorithm and which one is better on linked list. Q2. Dynamic memory allocation and use cases of malloc, calloc, realloc and new. Q3. Some codes were given on pointers and few questions were asked. Q4. One Problem was given which required topological sort approach.
Viewing 5371 - 5380 interview questions
See Interview Questions for Similar Jobs
Desenvolvedor C ++Desenvolvedor C JúniorDesenvolvedor Android JúniorDesenvolvedor De Android JúniorDesenvolvedor JrProgramador JavaDesenvolvedor Remoto Asp Net MvcC Desenvolvedor JavaDesenvolvedor AndroidDesenvolvedor De Aplicativos IosEngenheiro De Software De Desenvolvedor Java JúniorDesenvolvedor De Software JavaDesenvolvedor Java CoreDesenvolvedor Remoto Do IosDesenvolvedor De Aplicativos Para AndroidDesenvolvedor PythonEngenheiro De Software IosDesenvolvedor De IphoneDesenvolvedor Java Flex