Skip to content

[WIP] Implement String Reversal Function in Python#4

Draft
momstrosity wants to merge 3 commits intolaura-ct:40db4879-a52e-43f6-8301-e8e6fe7aeef5from
momstrosity:implement-string-reversal-1747931903
Draft

[WIP] Implement String Reversal Function in Python#4
momstrosity wants to merge 3 commits intolaura-ct:40db4879-a52e-43f6-8301-e8e6fe7aeef5from
momstrosity:implement-string-reversal-1747931903

Conversation

@momstrosity
Copy link
Copy Markdown

Implement String Reversal Function in Python

Description

Task

Implement String Reversal Function

Acceptance Criteria

  • Function should take a string input and return its reverse
  • Should handle empty strings
  • Should preserve spaces and special characters
  • Should be implemented without using string[::-1] or reverse()

Summary of Work

This pull request adds a new string reversal function to the project. The implementation will provide a robust and efficient way to reverse strings in Python, covering various input scenarios.

Changes Made

  • Create src/string_reversal.py with string reversal function
  • Create tests/test_string_reversal.py with comprehensive test cases
  • Ensure function handles different input types and edge cases

Tests

  • Test reversing normal strings
  • Test reversing empty strings
  • Test reversing strings with special characters
  • Test reversing unicode strings
  • Verify function handles different input types

Signatures

Staking Key

BiYiK5ioyqd6c2pPvvjaSzLAhR8MMvBordhBnh9CordT: 2kzzh6Zv2eii53h8ZEzRWFXDwY6zRrygGTwr6ucXd5cqBFGNUtb4vNtt1jE8TRcStJuJAStiT2iwU184hnhDnjKzDshTHeNaTMjjFz6q5gReqbVyru3AiqPNE48CVeD7M9ussWPiyXbxsRQj2iCao1PnDtViciV3zLE2TnuhG5iiSSFsTF7SMKGwCbB5QN8Qpw1kxsxmz9YbNhcqW2hBwEWR5ABqakuuSHRaYpfe8wUJpD2CvMKwRQJsnh3rot1SazFbXDxNh9S6E9PgyU4MrnxWQDXC3QybFpZzApPHsjJZHCRQNbaCuDBDubH3SjQJSpKbg4ALejNRP9C9NWS6gDWediC8KWDg6LQd78LXEuowbuPeeVysugAp9zk

Public Key

7rnv8Gvvs8tbnnnddjozHRXqtmrMpW536PJRDxV4ua4t: 3TLtADV2dUmNYG2qhVnCfQBDroukx5vA6VXefLuEcPGBfvSnpbANtYujsmCm3ehQpbCg17kTeKNtQPnERLCNSx2a5J721H9gwhQgBmVwfdVzYiMKXRvFWrkQwKYQjxfbY1269tGyz5LM6nPdiEQmt1MVhoFHSTWyp1vPSByyaqAUisVT34uYdHgdeHEwcenqrhsSuEmcshKYXjh2R5DoqvTXbr3tqk8SbxNhit9xNNmGMyMkXaAo6Shh6ghuUudycvEqFihhPnoaTEnucQujmuBMhxkutQct4Ugmsj6SuBLJMjB5opRTgF8vopHLP3zZU1ntVBJdrMR7PQq2s2mtmNqNf6a86PFk34eEq2LzUXXbvYhZJnFGQJMfye

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.

1 participant