Find Majority Element || Moore’s Voting Algorithm

  Рет қаралды 1,780

TechStoriesOfSrinidhi

TechStoriesOfSrinidhi

Күн бұрын

Пікірлер: 53
@chanikya_
@chanikya_ Күн бұрын
Your interview experience videos are too good akka
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi Күн бұрын
Soon, will post all interview experiences
@vijayd9258
@vijayd9258 23 сағат бұрын
To share your knowledge to other All the best.
@SowmyaMakam
@SowmyaMakam 14 сағат бұрын
3rd year valaki preparation plan chpu akka ante basics vasthayi tarwata how to practice annedhi video cheyyi akka
@pavanmajji4612
@pavanmajji4612 16 сағат бұрын
Good explanation
@abhiramvanama5266
@abhiramvanama5266 Күн бұрын
Akka advanced concepts cheppu akka dp graphs trees enduk ante ilantivi already unnai ga
@dheerajbaddie
@dheerajbaddie 17 сағат бұрын
Java implementation for challenge problem using Boyer-Moore Voting Algorithm public List majorityElement(int[] nums) { List result = new ArrayList(); int n = nums.length; // Step 1: Find potential candidates int candidate1 = 0, candidate2 = 0, count1 = 0, count2 = 0; for (int num : nums) { if (num == candidate1) { count1++; } else if (num == candidate2) { count2++; } else if (count1 == 0) { candidate1 = num; count1 = 1; } else if (count2 == 0) { candidate2 = num; count2 = 1; } else { count1--; count2--; } } // Step 2: Verify candidates count1 = 0; count2 = 0; for (int num : nums) { if (num == candidate1) { count1++; } else if (num == candidate2) { count2++; } } // Step 3: Add valid candidates to the result list if (count1 > n / 3) { result.add(candidate1); } if (count2 > n / 3) { result.add(candidate2); } return result; }
@nandakishore4166
@nandakishore4166 15 сағат бұрын
Idhi kadha ra Maaku Kavalsina Videos 😍 SrinidhiTechGaints Institutions Opening Soon 😂🤭
@CoolBoy-tp5bg
@CoolBoy-tp5bg 16 сағат бұрын
Hi srinidhi, Please do videos on low level design in telugu.
@chaitu._ankem
@chaitu._ankem 15 сағат бұрын
akka if you dont mind road map or steps cheptara for very bigginer what to start with? fundamentals chesi taravata dsa chesukovala konta mandi emo c,c++ lekapothe java radhu antunaru i want to study java.... and e coding tho patu btech subjects untayi kadha dbms, os , software eng e subjects kuda nerchukovala or just for cgpa ki chadute enough ah if you have time chepandi.....
@chaitu._ankem
@chaitu._ankem 15 сағат бұрын
and vere yt channels chusa mundu vaalu like fundamentals lo minimum 1k problems chesakane dsa velamantunaru and kontha mandi valu emo html javascript nerchukoni websites cheste adi mi resume or future lo use avutadi antunaru motham mess up ayipotuna akka em chadavali ani.......
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi 14 сағат бұрын
Yea sure will make one video on this
@chaitu._ankem
@chaitu._ankem 14 сағат бұрын
@ thanks akka....
@kavithajakkala8530
@kavithajakkala8530 19 сағат бұрын
Akka dsa ki gfg is enough for beginners or any recommed me😊
@devendrakotha11
@devendrakotha11 23 сағат бұрын
Akka frankly speaking naku asalu coding raadhu and intrest kuda ledhu and nenu chestundi emo MBA kani naku mee interview experiences anni chala Baga anipinchayi and mee videos nunchi learnings asalu MBA lo kuda cheppaledhu mee interview experiences anni videos vaste ela apply cheyalo ela approach avvalo ardam avutadi irrespective of industry and experience nenu fresher ni paiga ee kalam lo job tecchukovadam oka task ayite job ni long term ga retain chesukovadam inkoka pedda task inkoka vishyam freshers ela jobs ki apply cheyali ani inka freshers kosam and mainly ghost jobs and HR ghosting ni Ela tackle cheyalo ani videos chestaru ani request chestunna
@tharunb2002
@tharunb2002 22 сағат бұрын
confused about when your notice period ends, can you tell? and also i have a doubt, can we attend the interviews outside, do our company knows if we apply and attend interviews
@abhisheksalimeta620
@abhisheksalimeta620 15 сағат бұрын
waiting for interview experience pt4
@samsum1959
@samsum1959 23 сағат бұрын
Akka vere telugu youtube channel lo, more voting algorithm majority element ivvadhu ani chepparu. meeremo isthundhi ani chepthunnaru. Edhi correct akka? Okkokka youtuber okala chepthunnaru. Moreover meer sagame chepparu aa video tho compare chesthe. Telugu lo best resource telsaa akka DSA ki emaina. please suggest.
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi 23 сағат бұрын
Moore’s voting algo gives element which is appearing more than n/2 times in array, sagame cheparu in the sense? I mean em miss ayyanu? Telugu lo best resource telidu, u can follow strives DSA playlist - take you forward channel
@samsum1959
@samsum1959 23 сағат бұрын
@TechStoriesOfSrinidhi na interview lo idhe cheppanu akka. Voting algo iche result majority avvochu avvakapovachu ani cheppi reject chesadu 😥 and meer aa point mention cheyaledhu. Mee question lo majority always exists annaru... vadu adhi miss chesi trick chesadu but actual ga algo wont return majority. We need to check again annadu.
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi 22 сағат бұрын
@samsum1959 yes ikkada nen teskuna question lo majority element always exists, so moore’s algorithm gives correct majority element if one exists…If no majority element exists, result is not guaranteed to be correct without further verification……majority undochu undakapovachu case lo u have to do additional verification like if count of result is greater than n/2 ah check if yes that will be answer
@Dexter-w3l
@Dexter-w3l 22 сағат бұрын
A telugu channel lo telsukunnav bro idhi?
@samsum1959
@samsum1959 22 сағат бұрын
@@Dexter-w3l akka channel, code optimizers, msquare.
@Harish-ll3ru
@Harish-ll3ru 22 сағат бұрын
Akka nuv shift avvali anukunnapudu chala offers vachay But why some people with experience assala shift avvadame kashtam ani cheptharu i didn't understand.... Whether they are in lack of knowledge or are there no opportunities outside
@Anonymous____________A721
@Anonymous____________A721 21 сағат бұрын
Because she is a girl
@Suresh-kumar-22-ll
@Suresh-kumar-22-ll 23 сағат бұрын
Sis OS,CN medha videos cheyachu ga..
@pasumarthiashik1099
@pasumarthiashik1099 23 сағат бұрын
but using hashMap alone will work?
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi 23 сағат бұрын
@@pasumarthiashik1099 it will work but, using hashmap leads to using extra space
@pasumarthiashik1099
@pasumarthiashik1099 20 сағат бұрын
@@TechStoriesOfSrinidhi thank you
@code_creator_2003
@code_creator_2003 Күн бұрын
akka geeks for geeks lo yela dsa nerchukovalo oka detailed video cheyi step by step procees it would be very helpful.
@chaitu._ankem
@chaitu._ankem 14 сағат бұрын
already chesaru bro akka....past videos lo
@Typical_Indian_guy
@Typical_Indian_guy Күн бұрын
I don't know whether it's you are not. But I saw a girl seem like you in RTC bus while travelling on Saturday evening. You are with two of your friends and you left bus at Dilsukhnagar is that you are not please confirm. On the day you wear a brown full hand t shirt and a HP laptop bag😅.
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi Күн бұрын
Nen sat/sun bayataki vellatame impossibile adi kuda dilsukhnagar varak velladam highly impossible😂😂 Nenu kaadu
@Typical_Indian_guy
@Typical_Indian_guy Күн бұрын
@TechStoriesOfSrinidhi మనుషులు పోలిన మనుషులు ఏడుగురు ఉంటారు అందులో ఆమె ఒకరేమో మరి 😄😄
@Prince-gt5ju
@Prince-gt5ju Күн бұрын
Good explanation, which editor(writing part)are you using for explanation
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi Күн бұрын
Secret😝😂 Try to guess or find, will reveal next time
@Prince-gt5ju
@Prince-gt5ju Күн бұрын
@TechStoriesOfSrinidhi already search chesa , I didn't get 😔
@asish4554
@asish4554 23 сағат бұрын
Excalidraw
@mahi777-r4i
@mahi777-r4i 23 сағат бұрын
Me I think you teach in python.but I am be like:Entha la ninnu nammukunna u aashalanni pettukunnaanu......😢
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi 23 сағат бұрын
@@mahi777-r4i i gave pseudo code adi chustu eh lang lo ayna code cheyochu
@premprakash9712
@premprakash9712 23 сағат бұрын
Yes correct 😀​@@TechStoriesOfSrinidhi
@shanmukha599
@shanmukha599 22 сағат бұрын
Hi srinidhi, Binary Search problems series try cheyyandi , telugu lo evaru try cheyyaledu , lot of students ki binary search importance telustundi
@Dhanasri_Parisam
@Dhanasri_Parisam 20 сағат бұрын
Hai Akka .. As a student.. I'm Dhanu currently I was studying btech 2nd year at Aditya University Currently I'm looking for some clients for video editing. I was consistently working on video editing also knowing about the audience pulse like what type of videos to grow in social media I send the sample video I recently edit for insta influencer also I make thumbnails for KZbin please please give me an opportunity
@Dhanasri_Parisam
@Dhanasri_Parisam 20 сағат бұрын
Akka Please check your mail once
@harryharry2922
@harryharry2922 15 сағат бұрын
Do u really think these DSA (easy level ) help us getting job in current market, idk. Discourage cheyalani em kadhu gani, just asking you srinidhi, nuv emantav? Moreover Mana vallaki soft skills assal ravu, dhani paina video chey oksari.
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi 15 сағат бұрын
Depends on role and companies you r targeting to Dsa easy + web technologies or data engineering skills + cs fundas can get you into service based companies or these technology specific roles like frontend dev/data engineer DSA medium + system design can get you into good product based companies
@Krishna-jz6or
@Krishna-jz6or Күн бұрын
Akka start with advanced concepts likes trees,dp it will be useful because already e arrays simple inka chala videos vunnai
@TechStoriesOfSrinidhi
@TechStoriesOfSrinidhi Күн бұрын
Its better to go in order, I am covering questions from each problem pattern
@Krishna-jz6or
@Krishna-jz6or Күн бұрын
@ haa ok akka but try to do more videos on advanced concepts , and nee explination chala bagundhi akka♥️
@pasumarthiashik1099
@pasumarthiashik1099 23 сағат бұрын
thank you so much , i was doubting myself whether i did right or wrong using hashmap looking at the video timeframe , post watching the video , my head is relaxed feeling my approach was crt thanks btw I want to write a mail to you , can i get ur email id or in the bio I found one - is that the same one????
We fixed an inconsistency in Kotlin (non-local break & continue)
10:31
Kotlin by JetBrains
Рет қаралды 7 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Learn Coding & Get a Job (in 2025) 🔥
16:54
CodeWithHarry
Рет қаралды 887 М.
1. Algorithms and Computation
45:39
MIT OpenCourseWare
Рет қаралды 1,5 МЛН
Agreement with the U.S. / Ukraine’s Statement on Ending the War
13:26
04 - PRINTF & SCANF FUNCTIONS IN C PROGRAMMING
21:38
Sundeep Saradhi Kanthety
Рет қаралды 109 М.
INTRODUCTION TO FUNCTIONS - PYTHON PROGRAMMING
14:45
Sundeep Saradhi Kanthety
Рет қаралды 213 М.
20 - FACTORIAL PROGRAM - C PROGRAMMING
13:31
Sundeep Saradhi Kanthety
Рет қаралды 80 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН