-
Notifications
You must be signed in to change notification settings - Fork 70
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
nested-parens, benchmarking, and rayon #160
base: main
Are you sure you want to change the base?
Conversation
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.
I like the exercise - it's an interesting problem and I like the way we iterate though various solutions.
I do have a question mark about leetcode.com though - I've not heard of them before, and given their benchmarking seems to have issues (0ms
is not a useful result) I'm not 100% convinced it's worth tying this example to their website quite so tightly. To mention it in passing is probably fine though, as long as the exercise can be completed without reference to it (e.g. if it's offline, or re-organised, or whatever).
// 👀 I can propagate that information along the `Vec`! 👀 | ||
max_count = 👾👾👾; | ||
} | ||
// 👀 Oh right, gotta catch the other case in the `map` here 👀 |
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.
I don't understand this comment. What map?
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.
👀
assignments/nested-parens.adoc
Outdated
---- | ||
|
||
find the line where there is the maximum number of nested parentheses. | ||
In the above example, it would be one line `5`, as the maximum nesting level is `3`. |
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.
In the above example, it would be one line `5`, as the maximum nesting level is `3`. | |
In the above example, it would be on line `5`, as the maximum nesting level is `3`. |
Co-authored-by: Jonathan Pallant <jonathan.pallant@ferrous-systems.com>
Co-authored-by: Jonathan Pallant <jonathan.pallant@ferrous-systems.com>
Co-authored-by: Christian Poveda <31802960+pvdrz@users.noreply.github.com>
Co-authored-by: Christian Poveda <31802960+pvdrz@users.noreply.github.com>
Co-authored-by: Christian Poveda <31802960+pvdrz@users.noreply.github.com>
Co-authored-by: Christian Poveda <31802960+pvdrz@users.noreply.github.com>
Co-authored-by: Christian Poveda <31802960+pvdrz@users.noreply.github.com>
Co-authored-by: Christian Poveda <31802960+pvdrz@users.noreply.github.com>
Co-authored-by: Christian Poveda <31802960+pvdrz@users.noreply.github.com>
I present my first assignment.
I hope people like the WIP.