{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

mid.sample - Computer Science 130B Midterm Exam Total 100...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science 130B Midterm Exam Total: 100 pts. Name: (Last) Name: (First) Umail Account: @umail.ucsb.edu Write your name and UCSB umail account on the lines above. Write all your answers on the exam paper. Use the back of the exam paper or attach extra sheets if necessary. At the end of the exam, turn in all sheets in the exam paper whether you answer all the questions or not. There are two questions and the total number of points is 100. IMPORTANT NOTE: When you are asked to explain something concisely , clearly , and/or briefly , please do exactly that . Lengthy answers not to the point will not earn you extra points and will only cost you more time. Also, please write neatly and legibly. Poor penmanship that is hard to decipher will not earn you any sympathy points. Problem 1 (60%) An array A[1..n], with n 1, is called strictly unimodal if there is some integer j , with 1 j n , such that A [1] <A [2] < ··· <A [ j ] >A [ j + 1] > ··· >A [ n ].
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}