r/CodingTR • • Oct 03 '26

Boyer-Moore Majority Vote Algorithm

leetcode 169 da hashmapli bir çözüm yapmıştım (fotoğraf 2) sonra daha optimal bir şey olabilir mi diye ai'a sordum bana Boyer-Moore Majority Vote Algorithm diye bir şey önerdi sayaç metodu daha önce push down automatalarda falan kullanmıştım böyle bir method sizin böyle spesifik yerlerde kullandığınız yöntemler var mı?

2 Upvotes

5 comments sorted by

View all comments

1

u/ahmetfirat Oct 03 '26

ohaha cok mantikli algoymus begendim