matrices/questions.rst
author anoop
Sat, 09 Oct 2010 03:56:06 +0530
changeset 261 c7f0069d698a
child 287 d9507624eb8f
permissions -rw-r--r--
added base scripts and questions except for matrices and other-type-of-plots. previous commit only removed unwanted files.

Objective Questions
-------------------

.. A mininum of 8 questions here (along with answers)


Larger Questions
----------------

.. A minimum of 2 questions here (along with answers)

1. Consider an array [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].  A fold and add
   operation consist of two phases, a right fold and add and a left
   fold and add.

   Say in first fold and add, we take the right fold of the array and
   add it to the left like,

   [1+10, 2+9, 3+8, 4+7, 5+6, 6, 7, 8, 9, 10]

   and it becomes

   [11, 11, 11, 11, 11, 6, 7, 8, 9, 10]

   and in the second fold and add, we take the left fold of the new
   array and add it to the right and it becomes,

   [11, 11, 11, 11, 11, 17, 18, 19, 20, 21].

   What will be the array after 22 such operations starting with [1,
   2, 3, 4, 5, 6, 7, 8, 9, 10]