Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open a catalog:interviews/company/Alibaba #127

Open
AlexanderChen-Real opened this issue Jul 5, 2019 · 1 comment
Open

Open a catalog:interviews/company/Alibaba #127

AlexanderChen-Real opened this issue Jul 5, 2019 · 1 comment

Comments

@AlexanderChen-Real
Copy link

It is known that Alibaba is a great international company.Maybe @kdn251 can open a catalog:interviews/company/Alibaba.
For example,a 2019 Alibaba interview question.
//Question: you need to caculate sqrt(2) to 10 decimal places accurately without math library.
double sqrt2( ) { double low = 1.4, high = 1.5; double mid = (low + high) / 2; while (high – low > 0.0000000001) { if (mid*mid < 2) { high = mid; } else { low = mid; } mid = (high + low) / 2; } return mid; }

@ramazansakin
Copy link

Yeah, that would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants