You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that the builtin echo command cannot output the string "-n" (ref Why is printf better than echo?), we could amp up the difficulty of reverse-string by adding another diabolical test:
This will force the student to learn about a fairly nasty echo edge case.
On the other hand, reverse-string is currently an easy exercise with difficulty 1, and adding this test is likely to break a large proportion of existing solutions.
The text was updated successfully, but these errors were encountered:
Printing -n is a fun challenge, but it's not especially relevant to this exercise. In theory, that could be tacked onto any other exercise that allows arbitrary strings as the output. I would suggest passing.
Given that the builtin
echo
command cannot output the string "-n" (ref Why is printf better than echo?), we could amp up the difficulty of reverse-string by adding another diabolical test:This will force the student to learn about a fairly nasty
echo
edge case.On the other hand, reverse-string is currently an easy exercise with difficulty 1, and adding this test is likely to break a large proportion of existing solutions.
The text was updated successfully, but these errors were encountered: