palindrome: do not report one char long palindromes

[?]
Dec 21, 2020, 8:42 AM
O64GEJAPEX3S5TQUJ5DMDAS4FPOTW4SSINN6WVKEWBZZEW3CAMCAC

Dependencies

  • [2] ZQFONDI4 Add simple version
  • [3] VUXCDW3L palindrome: move to palindrome package
  • [4] MCHVA5DY Palindrome initial import
  • [5] AUM6AXH7 It is enough to check only half of the string because of symmetry

Change contents

  • replacement in snippets/palindrome/palindrome.go at line 28
    [2.608][2.608:624]()
    return longest
    [2.608]
    [2.624]
    if len(longest) > 1 {
    return longest
    }
    return ""
  • replacement in snippets/palindrome/palindrome.go at line 76
    [3.1270][3.1270:1289]()
    result <- longest
    [3.1270]
    [3.1289]
    if len(longest) > 1 {
    result <- longest
    } else {
    result <- ""
    }