abhisek247767 / LeetCode2024-6Companies30Days

Make your first Pull Request on Hacktoberfest 2024. Don't forget to spread love and if you like give us a ⭐️
40 stars 64 forks source link

Moore's voting algo , q- element that appered more than n/2 time #141

Closed yashogale30 closed 1 month ago

yashogale30 commented 1 month ago

Moore's voting algo

Question: Given an array of n integers, find the majority element, which is defined as the element that appears more than n/2 times in the array. If no such element exists, return -1.

github-actions[bot] commented 1 month ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that you star the repository and follow me in github,otherwise PR will not merged. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

abhisek247767 commented 1 month ago

This is time I merged but first create issue then do PR

yashogale30 commented 1 month ago

Okay , Thank you

yashogale30 commented 1 month ago

HI @abhisek247767 can you please add hacktoberfest-accepted label to my PR ? Thank you

abhisek247767 commented 1 month ago

okay

yashogale30 commented 1 month ago

Thanks a lot