← Google questions
CodingReported in a candidate post, Aug 2020

A Special Matrix

Filed under Google

Given an N x N matrix of positive integers, you may increment or decrement any element by 1 in one move. A number P is special if x^2 - 2*P + x = 0 has at least one negative integer root. Find the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.