Home > Logic
From ab to ba (Posted on 2019-01-17) |
|
Given a string of 2 letters ab, your task is to convert it into ba.
You are allowed to add either aa or bb on either side of a current string or into the string, like ab=>abaa=>abbb=>aaabbb=>aaabaabb. You are also allowed to erase either aa or bb any place like aaabbb=>abbb. Is it possible? If so, how?
No Solution Yet
|
Submitted by Ady TZIDON
|
Rating: 3.0000 (1 votes)
|
|
Comments: (
You must be logged in to post comments.)
|
|
Please log in:
Forums (0)
Newest Problems
Random Problem
FAQ |
About This Site
Site Statistics
New Comments (2)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On
Chatterbox:
|