Skip to content

Conversation

RaafatAkkad
Copy link
Contributor

@RaafatAkkad RaafatAkkad commented Mar 6, 2023

  • Set the HashMap initial capacity
  • Boxed types should be compared using "equals()".
  • Use String#charAt instead of String#toCharArray to avoid using O(n) space
  • Simplify return statement
  • File(s) Modified: 0020-valid-parentheses.java
  • Language(s) Used: Java

Submission:
Before:
Screenshot 2023-03-06 at 8 00 18 pm

After:
Screenshot 2023-03-06 at 8 01 10 pm

Important

Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

* Set the HashMap initial capacity
* Strings and Boxed types should be compared using "equals()".
* Use String#charAt instead of String#toCharArray to avoid using O(n) space
* Simplify return statement
@a93a a93a merged commit f32626a into neetcode-gh:main May 6, 2023
@a93a
Copy link
Collaborator

a93a commented May 6, 2023

Thanks!

@RaafatAkkad RaafatAkkad deleted the patch-1 branch July 8, 2023 19:44
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