Java Streams Interview Question - 10 - Get Second Highest/Lowest Number using Streams
Вставка
- Опубліковано 2 жов 2024
- Java Streams Interview Question - 10 - Get Second Highest/Lowest Number using Streams
Schedule a meeting in case of any queries/guidance/counselling:
calendly.com/n...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Naveen AutomationLabs Paid Courses:
GIT Hub Course:
naveenautomati...
Java & Selenium:
naveenautomati...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomati...
It is necessary to use limit we can skip using limit for this
thanks, man for these videos..... really helpful please continue interview related video...
these were helpful, appreciate the effort man
My man Naveen! flexing the best content
We don't need the limit method right ? Anyway we are finding the first whatever is the limit -no need of shrinking it anyway !
Thanks for sharing
Got this question in interview today. could not answer it. Thanks for sharing the answer.
completed all videos
Why not just make a sorted set , call it "int_set", from the list and then return int_set[1], and int_set[n-1] (please forgive poor syntax). Seems easier and cleaner code.
The question is to test collections knowledge, the problem can be solved without using collections too.
bro set also comes in collection
@@abhilashg1368
not everyone can easily catch that set removes duplicates , may be thats y he used distinct instead of Set
lakin ye sab method kaise pata chalegi ki kidhar hai aur kiske under me hai
I have doubt why use find first directly skip function will work
skip() will give you a stream, so to extract value from the stream you have to do findFirst
Very useful video
much love to you sir❤
You explained very clearly,thank you
you are explaining the things very clear. thank you
Thank you Naveen
Thanks
Very great Naveen,thank you
Super sir
completed all videos
Very helpful. Thank You Naveen.