Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go challenge 3 #427

Merged
merged 4 commits into from
Jan 24, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add README.md
  • Loading branch information
naren committed Jan 18, 2017
commit 25417c49e66c108ed10e88341d4c579661e0c5bf
15 changes: 15 additions & 0 deletions challenge_2/rust/makernaren/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Single Number
#### To run the code :
* Open this directory in terminal and run `go run max_occurance.go` to compile and run the code.
* To test the code just run, `go test` in same directory.
```
$ go run max_occurance.go
gGiven array is : [2 a l 3 l 4 k 2 3 4 a 6 c 4 m 6 m k 9 10 9 8 7 8 10 7]
Element that occur only max number of times : 4

$ go test
PASS
ok path/to/2017Challenges/challenge_2/rust/makernaren 0.005s

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
```