Sobes.tech

ERP Consultant

Live coding: Go tasks — concurrent requests, closures in goroutines, duplicate filtering, thread-safe counter, buffered channels, function timeout

220

Write a function FindFilesByExtension that recursively searches for files in a directory and returns a slice of absolute file paths ([]string) that meet the following conditions: file extension == targetExtension (case-insensitive) file size > minSizeKB The function should traverse all nested subdirectories. Example directory structure: /projects/ ├── doc.pdf (2048 KB) ├── report.docx (512 KB) ├── src/ │ ├── Main.go (2 KB) │ ├── Utils.go (5 KB) └── images/ └── photo.jpg (3072 KB) Check examples: files1, _ := FindFilesByExtension("/projects", "pdf", 1000) // files1 == []string{"/projects/doc.pdf"} files2, _ := FindFilesByExtension("/projects", "go", 3) // files2 == []string{"/projects/src/Utils.go"} files3, _ := FindFilesByExtension("/projects", "jpg", 2000) // files3 == []string{"/projects/images/photo.jpg"}

Junior
218

One of the services in the request chain stopped responding. How will you troubleshoot step by step?

Junior
216

Is there a technical solution you implemented that you now consider incorrect?

Principal
213

What is a futures contract as a financial instrument?

Junior
211

If we find a directory during a recursive traversal, which path do we use?

Junior
210
/7