Batman Vs Joker
CodeChefOpen on judge ↗
Gotham city is once again in danger and its saviour Batman is up for the challenge! Gotham city has n houses aligned in a straight line. Every building has a height (hi) and color (ci). Batman is currently standing on the top of building s whereas Joker is standing on the top of building t . The suit of Batman designed by Mr. Fox has a limitation that it can help Batman to fly over maximum k build
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start