The Wayback Machine - https://web.archive.org/web/20220512073715/https://github.com/TheAlgorithms/JavaScript/pull/1006
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

Upgraded Algorithm of alpha numeric palindrome #1006

Merged

Conversation

fahimfaisaal
Copy link
Contributor

@fahimfaisaal fahimfaisaal commented May 6, 2022

Open in Gitpod know more

Describe your change:

  • Optimized the traverse algo n to n / 2
  • Fixed some spell mistake & updated jsDocs
  • Modified the test cases

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new JavaScript files are placed inside an existing directory.
  • All filenames should use the UpperCamelCase (PascalCase) style. There should be no spaces in filenames.
    Example:UserProfile.js is allowed but userprofile.js,Userprofile.js,user-Profile.js,userProfile.js are not
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

@fahimfaisaal
Copy link
Contributor Author

@fahimfaisaal fahimfaisaal commented May 7, 2022

@appgurueu Its node version should be updated cause String.prototype.at method is available on LTS v16.15.0

@raklaptudirm raklaptudirm added algorithm code quality documentation tests labels May 7, 2022
@raklaptudirm
Copy link
Member

@raklaptudirm raklaptudirm commented May 7, 2022

@fahimfaisaal The tests are still failing.

@fahimfaisaal
Copy link
Contributor Author

@fahimfaisaal fahimfaisaal commented May 7, 2022

@raklaptudirm MDN said that after node v16.6.0 this method should work perfectly. and It's working perfectly on my machine when I'm using v16.15.0 via nvm.

@raklaptudirm
Copy link
Member

@raklaptudirm raklaptudirm commented May 7, 2022

The runner is using that version:

Found in cache @ /opt/hostedtoolcache/node/16.15.0/x64

@raklaptudirm
Copy link
Member

@raklaptudirm raklaptudirm commented May 7, 2022

@fahimfaisaal try updating the dependencies in package.json.

fahimfaisaal added 2 commits May 7, 2022
…ericPalindrome' of github.com:fahimfaisaal/Javascript into upgrade-alphaNumericPalindrome
@fahimfaisaal
Copy link
Contributor Author

@fahimfaisaal fahimfaisaal commented May 7, 2022

@raklaptudirm Done 😀

String/AlphaNumericPalindrome.js Outdated Show resolved Hide resolved
String/AlphaNumericPalindrome.js Outdated Show resolved Hide resolved
String/AlphaNumericPalindrome.js Outdated Show resolved Hide resolved
appgurueu
appgurueu previously approved these changes May 7, 2022
@raklaptudirm raklaptudirm merged commit cbc669a into TheAlgorithms:master May 7, 2022
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithm code quality documentation tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.