I got their answer. Note that there is a wrong "solution" to this problem that looks like it might be right.
It is a very standard problem, by the way. Most books on algorithms will have the solution.
It is a very standard problem, by the way. Most books on algorithms will have the solution.
What would you call this algorithm?
I solved the second problem, but my solution is brute-force, and I'd like to see a better way to do it.
Gur grpuavdhr vf pnyyrq "qlanzvp cebtenzzvat". Naq, guvf cnegvphyne ceboyrz vf pnyyrq gur "pbva punatr ceboyrz".