Skip to content
Related Articles

Related Articles

Improve Article
SAP Placement Coding Questions
  • Difficulty Level : Medium
  • Last Updated : 05 Oct, 2017

QUE 1: A given Series could be arithmetic,Geometric,Fibonacci.We will provide you ‘n’ numbers and you have to first check the type of series,then find out the next number .If you are unable to get the output return -999.

Input1 : integer value,the length of the array.
Input2 : Integer Array e.g(0,1,2,3)

Que 2 : Edward wants to find out maximum number of cake pieces he can get by making exactly n straight vertical cuts on the cake.You need to fill in a function that takes input as integer,which is the no of cuts,and return the maximum number of pieces that can be obtain by making n cuts.
0<=n<=10^9.

This article is contributed by Yash . If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.

My Personal Notes arrow_drop_up
Recommended Articles
Page :