Contact

Interview QuestionBank

Your Ultimate Tech Interview Compass
Prepare with confidence using our extensive database of real questions from FAANG and beyond.
Filter
Question Type
Add
Role
Add
Company
Baidu
Add
Coding
26857
How do you envision a useEffectOnce() hook in React that operates an effect solely one time throughout the component's lifecycle?
### Question Analysis The question is asking you to conceptualize and describe a custom React Hook, ...
Airbnb, Alibaba, AMD, Baidu, Bethesda Softworks, CD Projekt, Glu Mobile, GoDaddy, Google, HCL Technologies, Huawei, IBM, Jam City, Kraken, Meta, Mitsubishi Electric, Mojang Studios, Roblox, SAP, Tencent, Toshiba, Uber, Yoozoo Games
Frontend Engineer
Coding
8835
How do you envision a useEffectOnce() hook in React that operates an effect solely one time throughout the component's lifecycle?
### Question Analysis The question is about creating a custom React hook, `useEffectOnce()`, that en...
Airbnb, Alibaba, AMD, Baidu, Bethesda Softworks, CD Projekt, Glu Mobile, GoDaddy, Google, HCL Technologies, Huawei, IBM, Jam City, Kraken, Meta, Mitsubishi Electric, Mojang Studios, Roblox, SAP, Tencent, Toshiba, Uber, Yoozoo Games
Frontend Engineer
Coding
1818
How do you envision a useEffectOnce() hook in React that operates an effect solely one time throughout the component's lifecycle?
### Question Analysis The question is asking you to conceptualize a custom React hook, specifically ...
IBM, CD Projekt, Uber, GoDaddy, Huawei, SAP, Baidu, Alibaba, Meta, HCL Technologies, Tencent, Mojang Studios, Kraken, Google, Mitsubishi Electric, Toshiba, Airbnb, Yoozoo Games, Glu Mobile, Roblox, Jam City, AMD, Bethesda Softworks
Frontend Engineer
Coding
7641
How do you envision a useEffectOnce() hook in React that operates an effect solely one time throughout the component's lifecycle?
### Question Analysis The question asks you to conceptualize a custom hook in React called `useEffe...
Airbnb, Alibaba, AMD, Baidu, Bethesda Softworks, CD Projekt, Glu Mobile, GoDaddy, Google, HCL Technologies, Huawei, IBM, Jam City, Kraken, Meta, Mitsubishi Electric, Mojang Studios, Roblox, SAP, Tencent, Toshiba, Uber, Yoozoo Games
Frontend Engineer
Coding
59676
Can you outline the steps to build a reduce() function in JavaScript, focusing on aggregating array values through a callback?
### Question Analysis The question is asking for a detailed explanation of how to build a custom `re...
Accenture, AT&T, Baidu, Basecamp, Broadcom, Epson, GungHo Online Entertainment, HCL Technologies, InnoGames, Intel, Jam City, Kaspersky Lab, King, King Digital Entertainment, Machine Zone, Niantic, Plarium, Santa Monica Studio, Square, Sucker Punch Productions, Symantec, trivago, Wargaming.net
Frontend Engineer
Coding
27875
In your experience, how do you create a comprehensive file tree management function set, covering directory and file additions, navigation, and deletions?
### Question Analysis This question is asking you to explain your approach to designing and implemen...
Acronis, Airbnb, Amazon Web Services, AMD, Baidu, Big Fish Games, Bungie, Capgemini, Devolver Digital, Epson, Freshworks, FromSoftware, Gas Powered Games, GungHo Online Entertainment, Kraken, NCSoft, NEXON, Obsidian Entertainment, Oracle, SAP, SurveyMonkey, T-Mobile, Twitch
Frontend Engineer
Coding
22788
In JavaScript, how would you construct a game where two players take turns picking stones from a collection, as in the "Pick up stones" problem?
### Question Analysis The "Pick up stones" problem is a classic example of a turn-based game involvi...
Airbnb, Amazon, AMD, Baidu, Careem, Coinbase, DeNA, Digital Extremes, Funcom, Grubhub, Hitachi, HPE, Infosys, Insomniac Games, Jagex, Meta, NaturalMotion, NCSoft, NEXON, NortonLifeLock, Olympus, Oracle, Playdemic, Playrix, Playtika, Pocket Gems, Shopify, Stripe, SurveyMonkey, Trend Micro, Wargaming.net, Wrike, Zendesk, Zillow
Frontend Engineer
Coding
2798
Discuss your approach to elevating the performance of lookup and insertion in a hash map.
### Question Analysis The question is asking you to explain strategies or techniques to improve the ...
Apple, Atlassian, Baidu, Bandai Namco, Basecamp, Big Fish Games, Carbonite, Casio, FromSoftware, Gas Powered Games, Groupon, Hi-Rez Studios, HPE, Intel, Jagex, NetEase, NortonLifeLock, Oracle, Remedy Entertainment, SEGA, Slack, Veeam Software, Zendesk
Frontend Engineer