Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 421 Bytes

File metadata and controls

28 lines (15 loc) · 421 Bytes

Sqrt(x)

描述

Implement int sqrt(int x).

Compute and return the square root of x.

分析

二分查找

代码

{% if book.java %} {% codesnippet "./code/plus-one."+book.suffix, language=book.suffix %}{% endcodesnippet %} {% endif %}

{% if book.cpp %} {% codesnippet "./code/plus-one."+book.suffix, language=book.suffix %}{% endcodesnippet %} {% endif %}

相关题目