No video

2. Second Largest | Array - Easy | Learn DSA

  Рет қаралды 985

Ayushi Sharma

Ayushi Sharma

Күн бұрын

Problem link: www.geeksforge...
Code link: github.com/Ayu...
Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)
#DataStructuresAndAlgorithms
#Leetcode
#interviewpreparation
#AyushiSharma
Sum of Square Numbers solution
Sum of Square Numbers Leetcode
Sum of Square Numbers C++
Sum of Square Numbers Java
Sum of Square Numbers Python
🔥🔥🔥🔥👇👇👇
Join telegram channel for more updates on placement preparation : t.me/AyushiSha...
Checkout the series: 🔥🔥🔥
👉Interview Experiences : • Interview Experiences
👉 Array: • Arrays
👉 Linked List : • Linked List
👉 Heap : • Heap
👉 Recursion : • Recursion
👉 Stack and Queue : • Stack And Queue
👉 Greedy : • Greedy
👉 Dynamic Programming : • Dynamic Programming
👉 Leetcode contests : • Leetcode contests
👉 Leetcode June Challenge : • Leetcode June Challenge
👉 Leetcode July Challenge : • Leetcode July Challenge
LIKE | SHARE | SUBSCRIBE 🔥🔥😊

Пікірлер: 7
@anupam6045
@anupam6045 2 ай бұрын
Thank you diii for starting this playlist 🎉 let's go from beginner to advanced❤
@AyushiSharmaDSA
@AyushiSharmaDSA 2 ай бұрын
yessssss 🤝💪
@sarthakshishodia4838
@sarthakshishodia4838 2 ай бұрын
class Solution { public int print2largest(List arr) { TreeSet set = new TreeSet(); for (int i = 0; i < arr.size(); i++) { set.add(arr.get(i)); } if (set.size() < 2) { return -1; } set.pollLast(); return set.pollLast(); } } Is this can be more easier than above ?
@engineer9503
@engineer9503 Ай бұрын
Thank you for making these videos me kisi ki bhi video dekh lu itna jaldi kisi se samajh nahi jitni jaldi aapki video se aata h and can you please tell me which pen tablet are you using please tell me
@user_abhigupta
@user_abhigupta 2 ай бұрын
Just Little confused, why -1 ,
@AyushiSharmaDSA
@AyushiSharmaDSA 2 ай бұрын
you can assign it float("-inf") i.e the most minimum value, or you can assign 0 also. but you have to then check at last that if second == 0, then return -1
@niteshgupta1118
@niteshgupta1118 2 ай бұрын
Hey Ayushi. For writing, do you use pen tablet or iPad?
Crime Mafia Gave Me A Job
RakaZone Gaming
Рет қаралды 1,8 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,7 МЛН
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 20 МЛН
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 17 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 90 МЛН
Maximum Distance in Arrays | Leetcode 624 | Greedy
10:39
Ayushi Sharma
Рет қаралды 1 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,7 МЛН