Available question text
Given an undirected simple graph, determine whether you can add at most two edges (no self-loops or duplicates) so every vertex has even degree. The core challenge is a parity check: you must handle cases with 0, 2, or 4 odd-degree nodes and verify whether non-existing edges can pair them up (possibly across components) to fix all parities.
Related questions
Continue with questions that share topics or the same question type.
- All Nodes Distance K in Binary Tree
Coding · Binary Tree · Breadth-First Search · Depth-First Search
- Apply Operations to Make All Array Elements Equal to Zero
Coding
- Asked LC medium problems. Problems were not difficult, even without preparation--all related to string manipulation or array manipulation.
Coding
- Find All The Lonely Nodes
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2508. Add Edges to Make Degrees of All Nodes Even
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source