Find Lucky Integer in an Array Leetcode problem number 1394 JAVA interview programming playlist: • Interview Programming ... #java #interviewquestions #leetcode
Пікірлер: 4
@x-menofficial007 Жыл бұрын
Well explained, mem 🎉 🤩
@naskinzomb3645 Жыл бұрын
Very well explained ma'am nwz thankyou very much. 🙏🏽🤘🏾💯😂
@chinmayjain970510 ай бұрын
nice explanation 😇👍
@chinmayjain970510 ай бұрын
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