topcoder: corrected complexity analysis for BridgeCrossing