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

Create home_3_3.go printSorted #7

Open
wants to merge 3 commits into
base: home_3
Choose a base branch
from
Open

Create home_3_3.go printSorted #7

wants to merge 3 commits into from

Conversation

opi-dopi
Copy link
Owner

No description provided.

home_3_3.go Outdated
newMap[v] = x[v]
}

return newMap

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]

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.

Copy link

@burov burov left a 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants