SAP Placement Coding Questions
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)
Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!
Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsft, TCS, Wipro, Google and many more!
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.
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 firstname.lastname@example.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.