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

the answer of Ex_1_1_36 #6

Open
Nancy945 opened this issue Jul 15, 2016 · 1 comment
Open

the answer of Ex_1_1_36 #6

Nancy945 opened this issue Jul 15, 2016 · 1 comment

Comments

@Nancy945
Copy link

I think s[a[i]][i]++; is right not s[i][a[i]]++; in 22 line num. Am I wrong?

@huangyichun
Copy link

we can set m=3 n=1, -> s[3][3] 0 0 0
0 0 0
0 0 0
a[]= 0 , 1 ,2;
if not StdRandom.shuffle(a) the result is 1 0 0
0 1 0
0 0 1
j=a[i]
you should restart understand the topic. you should known j = a[i]

thank you for your question !

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

No branches or pull requests

2 participants