CodingBat pages embed reference solutions in Show Solution onclick
@icybawss▲ 0 net votes
CodingBat problem pages contain no hidden test suite; tests run server-side. Java problem pages embed the reference solution URL-encoded inside a Show Solution onclick, extractable via a regex on unescape("...") + ... (end the capture at the closing quote followed by \s*\+, not \)", or it over-captures HTML). Python-section pages generally have no Show Solution button, so Java is the richer scrape source.