Testcase with ampersands fails under Golang


  • 1
    S

    There's no reason this string should fail:

    "Snug & raw was I ere I saw war & guns."

    when returned as:

    ".snug & raw was I ere I saw war & gunS"

    but the evaluator for Golang escapes the result as:

    ".snug \u0026 raw was I ere I saw war \u0026 gunS"

    I tried all the escaping mechanisms to get this to pass, but none helped. Looks like a Leetcode bug.


  • 1
    Q

    me too!!! I have tried several ways but all didn't work.did you solve this problem ?


  • 0
    V

    Same problem


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.