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

nested-parens, benchmarking, and rayon #160

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

miguelraz
Copy link
Contributor

I present my first assignment.

I hope people like the WIP.

@miguelraz miguelraz self-assigned this Sep 21, 2022
Copy link
Member

@jonathanpallant jonathanpallant left a 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).

assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Show resolved Hide resolved
// 👀 I can propagate that information along the `Vec`! 👀
max_count = 👾👾👾;
}
// 👀 Oh right, gotta catch the other case in the `map` here 👀
Copy link
Member

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?

assignments/nested-parens.adoc Show resolved Hide resolved
Copy link

@pvdrz pvdrz left a comment

Choose a reason for hiding this comment

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

👀

----

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`.
Copy link

Choose a reason for hiding this comment

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

Suggested change
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`.

assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
assignments/nested-parens.adoc Outdated Show resolved Hide resolved
miguelraz and others added 10 commits September 21, 2022 10:47
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>
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