为什么吃完大蒜再用薄荷味的牙膏刷牙会觉得特别辣?# Joke - 肚皮舞运动
c*n
1 楼
国人面试。一道dropbox 的高频题
Find files that have the exact same contents in a given directory. Write a
function that takes a path and returns a list of lists or sets. Each set
should contain files that have the same content.
An example output is for the input "/foo/" is:
[
["/foo/bar.png", "/foo/images/foo.png"],
["/foo/file.tmp", "/foo/other.temp", "/foo/temp/baz/that.foo"],
["/foo/1"]
]
顺利写出主要的逻辑,一些API细节没有时间实现。
recruiter 说还要screening 一轮。要不就是国人大哥没有给好评,要不就是这家要求
的确高
Find files that have the exact same contents in a given directory. Write a
function that takes a path and returns a list of lists or sets. Each set
should contain files that have the same content.
An example output is for the input "/foo/" is:
[
["/foo/bar.png", "/foo/images/foo.png"],
["/foo/file.tmp", "/foo/other.temp", "/foo/temp/baz/that.foo"],
["/foo/1"]
]
顺利写出主要的逻辑,一些API细节没有时间实现。
recruiter 说还要screening 一轮。要不就是国人大哥没有给好评,要不就是这家要求
的确高