Тёмный

Ice Cream Parlour Hackerrank Solution 

Kuldip Ghotane
Подписаться 705
Просмотров 2,9 тыс.
50% 1

In this video I have discussed Hashmap Ice cream parlor problem from search section from the hackerrank interview preparation kit playlist.I have tried to solve this in O(n) time.
If you are someone who is trying to solve all the problems from hackerrank interview preparation kit playlist and getting stuck anywhere or looking for optimized solution do check my playlist
• Hackerrank Interview P...

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@shantanu2322
@shantanu2322 2 года назад
i just i want to say..... maza aaya. good worked bhaiya . very appreciable bhaiya. par bhaiya hindi me banaye or views badega.
@Setssquare
@Setssquare 3 года назад
Finally found a good channel
@nakulnair497
@nakulnair497 2 года назад
How do we solve the same in C? Should we use hash map in c also
@kuladeepvanapalli877
@kuladeepvanapalli877 3 года назад
Thanks for the video
@KuldipGhotane
@KuldipGhotane 3 года назад
Thanks Kuldeep for the kind words 🙂
@kuladeepvanapalli877
@kuladeepvanapalli877 3 года назад
why can't we declare the map value at the start of for loop?
@KuldipGhotane
@KuldipGhotane 3 года назад
Hello Kuladeep, I hope you are referring to population of map with index. The reason will be lets say arr : 1 2 3 4 you want to find sum 4 and we know the ans will be (1,3) and will be given when we are at pointing at 3 However if we populate map first so in condition 2 it will be filled in the map and you will be checking for 4-2 so it will exist ass we recently added in top but in reality we only have one count of 2. I hope this clears why we are populating map in the end. Also you can add element in the start but you will need to do the structural changes to the code. Thanks for stoppping by
@amanpratapchandra421
@amanpratapchandra421 3 года назад
Hey! @Kuldip Ghotane why did you do map[input]=i ? I didn't understand. Can you explain to me?
@KuldipGhotane
@KuldipGhotane 3 года назад
Hello Aman With use of above statement we can store the index of / order/ position in array. If we use unordered map it do not store order wise. Hope it helps. Thanks for stopping by.
Далее
5 Simple Steps for Solving Any Recursive Problem
21:03
Making Candies Hackerrank Solution
52:33
Просмотров 3,9 тыс.
ГИГАЧАД МЭЙКЕР В PLANTS VS ZOMBIES 2!
00:49
Новый уровень твоей сосиски
00:33
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 73 тыс.
Triple Sum Hackerrank Solution
23:52
Просмотров 673
Top 7 Data Structures for Interviews Explained SIMPLY
13:02
Python Decorators in 15 Minutes
15:14
Просмотров 441 тыс.
3.4 Huffman Coding - Greedy Method
17:44
Просмотров 1,6 млн
How does Netflix recommend movies? Matrix Factorization
32:46
Winning Google Kickstart Round C 2020
30:57
Просмотров 3,9 млн
Reverse Shuffle Merge Hackerrank solution Part 1
24:30
Просмотров 4,3 тыс.