Google SDE1
2381
Feb 07, 2020
Feb 07, 2020

Q1 List vs vector?
Q2 finding sum of all elements is faster in wich data structure and why? (Compare between arrays and linked List)
Q3 Coding Question-
there is a directory. A directory can contain another directory as well as a file.
A directory can be deleted if it is empty.
we are given a function which will give us the list of paths of all the things present inside a directory if we provide it the path of that directory.
Another function is given which will take path and will return wether this is a directory or a file.
Another function delete is given which can delete the file at that path or directory if that directory is empty.

Question is u r given a directory and u have to tell wether that directory can be deleted or not.
Comments (1)