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

Added example dijkstra algorithm #1572

Closed

Conversation

Irene-123
Copy link

Hello, I was working on learning smart contracts and developed Dijkstra's Algorithm in rust which computes the shortest path between 2 nodes. I'm wondering if this is a good implementation of rust and could be added as an example for people to learn. I believe it could be very helpful for students and beginners to learn and get their hands on Rust! Thank you

@HCastano
Copy link
Contributor

HCastano commented Jan 4, 2023

Hey @Irene-123! As @SkymanOne mentioned in #1571, this isn't an ink! specific example. Any examples that are part of this repository assume that readers already know Rust.

If you're looking to get feedback on your Rust, or share your Rust knowledge with others, you should check out Exercism.

@HCastano HCastano closed this Jan 4, 2023
@Irene-123 Irene-123 deleted the added-example-dijkstra-algorithm branch January 4, 2023 14:49
@ascjones
Copy link
Collaborator

ascjones commented Jan 4, 2023

Hey maybe we could add a section to https://github.com/paritytech/awesome-ink for links to user supplied examples? We definitely want to encourage this!

@Irene-123
Copy link
Author

Thank you

@ascjones
Copy link
Collaborator

ascjones commented Jan 4, 2023

I haven't looked at the code but it sounds like this is not the type of computation one would want to do on-chain in a smart contract. Please continue to experiment with ink! though and share your examples with us though.

@Irene-123
Copy link
Author

Sure definitely I would try more realistic examples!

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.

None yet

3 participants