Skip to main content
All Questions

With x_i in {+1, -1} for i = 1..100, find signs that bring the sum of x_i * sqrt(i) within about 10^-4 of zero.

Unlock detailed company stats for this questionUpgrade
Each x_i is +1 or -1 for i = 1 to 100. Choose the signs so that the sum of x_i * sqrt(i) is as close to zero as you can get, and find a solution within about 10^-4 of zero.

Community answers

No answers contributed by the community yet.

Related courses

Course

SQL Interview Prep Course

Prepare for SQL interviews with lessons on joins, aggregations, and window functions, then practice real SQL interview questions in an interactive editor with expert solutions.

Course

Data Science Interview Prep

Land your dream data science role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Practice statistics, experimentation, coding, SQL, machine learning, behavioral interviews, and more.