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

CON-3264 Fix rust piscine's quest-02 #2825

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

pedrodesu
Copy link
Contributor

@pedrodesu pedrodesu commented Dec 11, 2024

@pedrodesu pedrodesu added the 📕 Rust Rust label Dec 11, 2024
@pedrodesu pedrodesu requested a review from MSilva95 December 11, 2024 13:04
@pedrodesu pedrodesu self-assigned this Dec 11, 2024
@pedrodesu pedrodesu force-pushed the CON-3264-fix-rust-quest-02 branch from d4f960c to cb37e04 Compare December 11, 2024 13:13
Copy link
Member

@MSilva95 MSilva95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small change and it's good to go

println!("{:?}", vec_function(c));
println!("{:?}", nbr_function(c));
println!("{:?}", vec_function(b));
println!("{:?}", str_function(a));
}
```

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output here in the README is different from the one in the solution:
In the solution, we get this with the new changes:

(0, 1.0, -inf)
([1, 2, 4, 5], [0.0, 0.6931471805599453, 1.3862943611198906, 1.6094379124341003])
("1 2 4 5 6", "2.718281828459045 7.38905609893065 54.598150033144236 148.4131591025766 403.4287934927351")

Basically switch line 54 and 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants