Find Lucky Integer in an Array | Leetcode 1394

  Рет қаралды 2,207

Technosage

Technosage

Жыл бұрын

Find Lucky Integer in an Array
Leetcode problem number 1394
JAVA interview programming playlist:
• Interview Programming ...
#java #interviewquestions #leetcode

Пікірлер: 4
@x-menofficial007
@x-menofficial007 Жыл бұрын
Well explained, mem 🎉 🤩
@naskinzomb3645
@naskinzomb3645 Жыл бұрын
Very well explained ma'am nwz thankyou very much. 🙏🏽🤘🏾💯😂
@chinmayjain9705
@chinmayjain9705 10 ай бұрын
nice explanation 😇👍
@chinmayjain9705
@chinmayjain9705 10 ай бұрын
public int findLucky(int[] arr) { int[] numbers = new int[501]; for (int j : arr) { numbers[j]++; } for (int i = 500; i > 0; i--) { if (i == numbers[i]) return i; } return -1; if we use this way then we don't have to use max func
Power of Two | LeetCode problem 231
4:03
Technosage
Рет қаралды 4,6 М.
the TRUTH about C++ (is it worth your time?)
3:17
Low Level Learning
Рет қаралды 645 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 5 МЛН
Maximum Subarray | Kadane's Algorithm | Leetcode 53
7:20
Technosage
Рет қаралды 7 М.
GOOGLE Interview Question || Puzzle : 12 Men On An Island || Hard Logic Puzzle
22:01
Solve Any Pattern Question With This Trick!
57:20
Kunal Kushwaha
Рет қаралды 2,3 МЛН
Сколько реально стоит ПК Величайшего?
0:37
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН