top button
Print Preview

I am confused what this question is telling and I also like to know the complete solution of this question.

0 votes

1) Write a program that computes
4\cdot \sum_{k=1}^{10^6} \frac{(-1)^{k+1}}{2k-1} = 4\cdot(1-1/3+1/5-1/7+1/9-1/11\ldots).

also how to do this by the method asked in the question;
2) Write a function that rotates a list by k elements. For example [1,2,3,4,5,6] rotated by two becomes [3,4,5,6,1,2]. Try solving this without creating a copy of the list. How many swap or move operations do you need?

these both questions are from

posted Jan 6 by Harshil Pasnani

Looking for an answer?  Share this question: #
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Similar Questions
0 votes

In Computer , Array and Stack both are used to store information in memory ..

so, What is the difference between Array and stack?

0 votes

Should we answer specific technical terms or software need or in general technology required or in general how would be the company's environment?
It would be good if answer is from freshers perspective, with specific examples. For eg. The Designation is for Graduate engineer trainee (software/hardware).