Frontend interview question 2024 - file size

8 Jun 2024 · 6 min
6:03

A recursive solution to sum file sizes in a nested folder tree. Check if each node is a number (file) and add it, otherwise recurse through Object.values on subfolders. Time complexity is O(n) where n is the total number of nodes.

Chapters

More from Happy

youtube.com

Frontend interview question 2024 - javascript technical assignment

2y ago
youtube.com

React Todo classes vs hooks

2y ago
youtube.com

Design System Interview - Design System for a kanban board , Fullstack developer, 2024

2y ago
youtube.com

Frontend Interview Question - Javascript redux like state implementation

2y ago
youtube.com

Frontend Design System Interview - Azure resources application, 2024

2y ago
youtube.com

Frontend Design System Interview - 2 questions in one interview, 2024

2y ago
youtube.com

Frontend Design System Interview - question 1, 2024

2y ago
youtube.com

Frontend interview question - Fibonacci all the question variations

2y ago
youtube.com

Frontend interview question 2023 - React recursive tree

2y ago
youtube.com

Frontend interview question 2024 - buckets question

2y ago
youtube.com

React interview questions - Counter questions (react hooks)

2y ago
See all content