Skip to content

Recognize dull strconv atoi #182

@quasilyte

Description

@quasilyte

https://shareablecode.com/snippets/golang-solution-for-leetcode-problem-add-binary-dxhd-FPGR

ai, _ := strconv.Atoi(string(a[i]))
// =>
ai := int(a[i] - '0')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions