https://github.com/mxssl/leetcodetwosumgolang
https://github.com/mxssl/leetcodetwosumgolang
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mxssl/leetcodetwosumgolang
- Owner: mxssl
- Created: 2018-09-02T21:16:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T21:17:57.000Z (almost 8 years ago)
- Last Synced: 2025-01-22T19:21:31.460Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeetCodeTwoSumGolang
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
```
go test ./... -v -cover
=== RUN TestCase
Expected: [0 1], Output: [0 1]
--- PASS: TestCase (0.00s)
PASS
coverage: 76.9% of statements
ok github.com/mxssl/LeetCodeTwoSumGolang 0.153s coverage: 76.9% of statements
```