Frequency of each element in an array using hashMap | O(n) time complexity

  Рет қаралды 23,125

Technosage

Technosage

2 жыл бұрын

Frequency of each element in an array using Hash Map.
Time complexity: O(n) time complexity.
=================================
Other related videos:
Frequency of each element in an integer array | Brute force
• Frequency of each elem...
#JAVA

Пікірлер: 17
@bibhasahu7378
@bibhasahu7378 7 күн бұрын
very nice 👏
@tejalycan1772
@tejalycan1772 6 ай бұрын
perfect explanation. Mind blown🙏🙇‍♀
@rajat-s-kale1771
@rajat-s-kale1771 Жыл бұрын
Thank you so much for this explanation , it helped me alot;
@ambarishshiva7167
@ambarishshiva7167 2 жыл бұрын
Thank you so much.crystal clear
@TechnosageLearning
@TechnosageLearning 2 жыл бұрын
Thank you😊
@Ha-su2in
@Ha-su2in 2 жыл бұрын
thank you for this video. how to calculate the frequency of repeating elements in separate groups in an arraylist. for example { 2, 4,4,5 ,3,7,7, 2,2, 5,5 } frequency 5 is 3: 1 and 2, and I want to know also the index of each element
@TechnosageLearning
@TechnosageLearning 2 жыл бұрын
Will make a separate video on that
@deliveringIdeas
@deliveringIdeas 2 жыл бұрын
Thanks
@user-kb1fk7cd6w
@user-kb1fk7cd6w 2 ай бұрын
how to use this method when user input the array size and values? is that possible? pls rwply
@azimrahman3584
@azimrahman3584 2 жыл бұрын
thankyou and after getting the frequency the write the total of frequency
@karankumar4384
@karankumar4384 2 жыл бұрын
for c++?
@tejasukalkar2199
@tejasukalkar2199 2 жыл бұрын
one doubt where did you initialise entry set in this code?
@TechnosageLearning
@TechnosageLearning 2 жыл бұрын
You don't need to initialize the entry set...Just create the object of Hashmap and you can call the function entryset of Hashmap. Hashmap hm= new HashMap() hm.entryset()
@vivekgupta9115
@vivekgupta9115 Жыл бұрын
How to pass value by the users
@TechnosageLearning
@TechnosageLearning Жыл бұрын
Hello Vivek, You can use scanner class in JAVA to pass value by user.
@vivekgupta9115
@vivekgupta9115 Жыл бұрын
Thank you
@jitmondal3933
@jitmondal3933 2 жыл бұрын
video cam on karke padhaiye..... jeda man lagega padhai mei.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 38 МЛН
Hash Tables and Hash Functions
13:56
Computer Science
Рет қаралды 1,5 МЛН
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,6 МЛН
Introduction to Big-O
12:40
WilliamFiset
Рет қаралды 275 М.
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
Data Structures & Algorithms #1 - What Are Data Structures?
16:35
Dictionary in Python
12:24
Telusko
Рет қаралды 1,3 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 7 МЛН
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 4,7 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 2,5 МЛН
ноутбуки от 7.900 в тг laptopshoptop
0:14
Ноутбуковая лавка
Рет қаралды 3,6 МЛН