Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

nested-parens, benchmarking, and rayon#160

Open
miguelraz wants to merge 11 commits intomainfrom
nested-assignment
Open

nested-parens, benchmarking, and rayon#160
miguelraz wants to merge 11 commits intomainfrom
nested-assignment

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).

// 👀 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?

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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants