Тёмный

LeetCode 846 - Hand of Straights - Java 

Alpha-Code
Подписаться 1,8 тыс.
Просмотров 72
50% 1

Solution, explanation, and complexity analysis for LeetCode 846 in Java
Problem Description:
leetcode.com/p...
Code:
github.com/Ana...

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

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@abhcode
@abhcode 3 месяца назад
How did you come up with this approach many people are using treemap/priority queue/min heap for it ,how to decide the good one? I personally loved this solution since it is straight forward! Thanks
@Alpha-Code
@Alpha-Code 3 месяца назад
Well I realized that I need to know the min value available and can get the rest from there so yeah either min heap or just use hashmap and array since my values never change. Heap better for when your values change instead of static.
Далее
Moving back to JavaScript after my Elixir journey
15:46
+1000 Aura For This Save! 🥵
00:19
Просмотров 2,9 млн
Hand of Straights - Leetcode 846 - Python
15:54
Просмотров 52 тыс.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Просмотров 229 тыс.
You Are WRONG About 0 Based Indexing
25:02
Просмотров 290 тыс.
Student Attendance Record II - Leetcode 552 - Python
27:10
LeetCode was HARD until I Learned these 15 Patterns
13:00
How to make HUGE N-Body Simulations (N=1,000,000+)
10:28
How I Would Learn To Code (If I Could Start Over)
13:43