The Wayback Machine - https://web.archive.org/web/20231027025103/https://www.geeksforgeeks.org/sap-placement-coding-questions/
Open In App
Related Articles

SAP Placement Coding Questions

Improve Article
Improve
Save Article
Save
Like Article
Like

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.

If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@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.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 05 Oct, 2017
Like Article
Save Article
Similar Reads