Lionel and Lex
CodeChefOpen on judge ↗
Problem description. Lex Luthor is a genius, albeit evil. Vertex Cover is an NP-hard problem. Lex Luthor's father, Lionel, is abusive. But even he knows that Lex cannot solve such a hard problem. He gives Lex an easier problem. Given the fact that in the graph G given to Lex, the Vertex-Cover has size strictly less than k or strictly greater than 2k, for a given integer k. Help poor Lex to tell t
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