Solving a Minecraft Coding Interview Question Using Dynamic Arrays

Опубликовано: 15 Октябрь 2024
на канале: Coderbyte
1,285
35

As part of our dynamic arrays series, this week Liz tackles a popular real-world problem that involves finding time for her team to play Minecraft by using dynamic arrays.

This week’s problem:
Liz wants everyone at her company to hang out for a game of Minecraft, but everyone has told her they have too many meetings. She knows that there must be some time throughout the day that they are all free for some quality time.

Write a function that given an array of everyone’s meetings, returns a list of merged meetings so that Liz can see when everyone is free for games.

Additional Resources:
Practice hundreds of real coding challenges at https://coderbyte.com/
Need more practice? Check out our channel for more videos on preparing for a coding interview    / coderbytedevelopers  

Video Overview:
0:33 The Problem
1:46 Examples
6:10 The Approach
12:22 Coding a Javascript Solution
37:38 Recap