Загрузка страницы

GOOGLE PHONE INTERVIEW QUESTION - LARGEST VALUES FROM LABELS

SOCIAL
----------------------------------------------------------------------------------------------------------------
Instagram: https://instagram.com/kevinnaughtonjr/
Twitter: https://twitter.com/KevinNaughtonJr
Patreon: https://www.patreon.com/KevinNaughtonJr
Merch: https://teespring.com/stores/kevin-naughton-jrs-store
GitHub: https://github.com/kdn251

This is one of Google's commonly asked interview questions according to LeetCode (2020)! largest values from labels coding solution. If you give me 10 minutes you'll thank me if this appears during your Google interview! Coding Interviews largest values from labels (LeetCode) question and explanation.

OTHER VIDEOS YOU MIGHT LIKE:
----------------------------------------------------------------------------------------------------------------
HOW TO USE LEETCODE EFFECTIVELY: https://www.youtube.com/watch?v=iGFns...
A DAY IN THE LIFE OF A NYC SOFTWARE ENGINEER: https://www.youtube.com/watch?v=BbD7f...
HOW TO SOLVE ANY INTERVIEW QUESTION: https://www.youtube.com/watch?v=JB78_...

DISCORD CHANNEL
----------------------------------------------------------------------------------------------------------------
To join the Discord channel use the following link and join the "Member" tier: https://www.patreon.com/KevinNaughtonJr In this Discord channel, you will be able to...
1. Ask me questions directly (as well as other members)
2. Ask about and discuss previous interview experiences
3. Find mock interview partners
4. Share helpful videos for interview preparation, and more!

This question is commonly asked by the following companies: Google

Link to problem: https://leetcode.com/problems/largest-values-from-labels/

Intuition behind solution: create a heap to store the item with the largest value at any moment. Create a hash map to track how many times a particular label has been used. While your heap isn't empty and you haven't used as many items as you're allowed, pull an item from the heap and add it's value to your return variable if its label has not been used too many times.

MUSIC
----------------------------------------------------------------------------------------------------------------
Playboi Carti - Magnolia ( MAJORA Remix ) by ONDE 波
https://soundcloud.com/onde_youtube/playboi-carti-magnolia-majora-remix

#techinterviews #leetcode #googleinterview

Видео GOOGLE PHONE INTERVIEW QUESTION - LARGEST VALUES FROM LABELS канала Kevin Naughton Jr.
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
11 марта 2020 г. 6:00:00
00:12:18
Яндекс.Метрика