Skip to content

Bug Report for three-integer-sum #6263

Open

Description

@JThramer

Bug Report for https://neetcode.io/problems/three-integer-sum

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

Test logic emits a warning that is unable to be resolved.

main.swift:33:13: warning: variable 'nums' was never mutated; consider changing to 'let' constant
 34 | class TestSolution {
 35 |     func threeSum(_ nums: [Int]) -> [[Int]] {
 36 |         var nums = nums.sorted()
    |             `- warning: variable 'nums' was never mutated; consider changing to 'let' constant
 37 |         var res: [[Int]] = []
 38 |

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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