← All problems

Square Root

Medium · Combinational · SystemVerilog

Design a module that computes the integer square root of the signed input {in_0}: the largest {out} such that {out}$^2 \le$ {in_0}.

If {in_0} is negative, {out} is $0$.

Open this challenge in the editor →