blossom-babs / Data-structures-and-algorithm

Data structures and algorithms solutions in javascript and pythong - arrays, linked list, trees, lists, object oriented programming
https://github.com/blossom-babs/Data-structures-and-algorithm
12 stars 5 forks source link

Leetcode 169: Majority Element code in python #2

Open blossom-babs opened 2 years ago

blossom-babs commented 2 years ago

problem: https://leetcode.com/problems/majority-element/

solution: https://www.youtube.com/watch?v=enVivn6eXJY

Todo:

  1. Write code here
  2. Add test cases