matrices/questions.rst
changeset 261 c7f0069d698a
child 287 d9507624eb8f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/matrices/questions.rst	Sat Oct 09 03:56:06 2010 +0530
@@ -0,0 +1,32 @@
+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]
+