DEV Community

loading...

Discussion on: A Google Interview Question

Collapse
cindyytong profile image
Cindy Tong Author

@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

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 Author

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