DEV Community

Discussion on: A Google Interview Question

Collapse
 
cindyytong profile image
Cindy Tong

@dbenchi Thanks for catching that. Typo on my end. It should be 2, I also added a 3rd scenario

  • For strArr = ["110", "000", "111"], return 1.
Collapse
 
dbenchi profile image
David BENCHI • Edited

Thanks for the fix. However in the new example, this should return 2 not 1. Am I right?

Thread Thread
 
cindyytong profile image
Cindy Tong

Yes! LOL not my day today, appreciate you keeping me in check :) @dbenchi