-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create home_3_3.go printSorted #7
base: home_3
Are you sure you want to change the base?
Conversation
home_3_3.go
Outdated
newMap[v] = x[v] | ||
} | ||
|
||
return newMap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the task description this function should only print the map values. You should not to return map.
home_3_3.go
Outdated
|
||
for _, v := range arKeys { | ||
|
||
newMap[v] = x[v] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't create a new map. Just print values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main purpose of this task to teach you have to traverse map in order by keys way, please implement task correctly
I hope I understand right last comments or i need do this task without sort.Ints.
No description provided.