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

Updating method signature in flatten array #2900

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jagdish-15
Copy link
Contributor

Pull Request

This PR addresses issue #2896 by updating the method signature in the starter code. Additionally, it updates the example solution to align with the revised method signature in the starter code.


Reviewer Resources:

Track Policies

Copy link
Member

@kahgoh kahgoh left a comment

Choose a reason for hiding this comment

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

Hey @jagdish-15, I've just had a look and think this looks good. I just need a bit of time to see if this can work with List<?> flatten(List<?> list) instead of List<Object> flatten(List<?> list).

@jagdish-15
Copy link
Contributor Author

Hey @kahgoh, thanks for taking a look. I totally get that you want to check if List<?> flatten(List<?> list) can work instead of List<Object> flatten(List<?> list). From what I saw, the wildcard type (?) was causing some issues with the assertions.

Feel free to take your time, and let me know if you need anything from my side! Looking forward to hearing your thoughts.

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.

2 participants