java-algorithms-implementation icon indicating copy to clipboard operation
java-algorithms-implementation copied to clipboard

Added null string input handling for 2 methods

Open aris-ariawan opened this issue 1 year ago • 0 comments

Edited code so that reverseWithStringConcat and reverseWithStringBuilder can handle null or empty string inputs gracefully, returning an empty string in such cases.

By submitting this pull request I confirm I've read and complied with the below requirements.

  • [ ] I have read the Contribution guidelines and I am confident that my PR reflects them.
  • [ ] I have followed the coding guidelines for this project.
  • [ ] My code follows the skeleton code structure.
  • [ ] This pull request has a descriptive title. For example, Added {Algorithm/DS name} [{Language}], not Update README.md or Added new code.

aris-ariawan avatar Oct 30 '24 19:10 aris-ariawan