Ad
  • Custom User Avatar

    The function lookAndSayAndSum(n) doesn't follow the single responsibility principle because it does two things: it runs the lookAndSay algorithm and sum the digits. It would be better to call it sumLookAndSayDigits(n)