Code Room
Code reviewHard
Question
Review this C++ helper that returns the absolute value of a 32-bit int.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
int32_t myAbs(int32_t x) { if (x < 0) { return -x; } return x;}Run or narrate your approach, then ask the coach.