1) Difference between stack and queue.
Software Developers Interview Questions
96,386 software developers interview questions shared by candidates
Tell all the data structures and the best data structure and why.
Asked about personal data and about c language for half an hour.
Suppose you have a stack of pancakes of pairwise distinct sizes. You wish to order the pancakes the pancakes by size, with the largest one on the bottom. The only operation is available to you is a spatula flip: You can insert a spatula anywhere in the pancake stack and flip over the stack above the spatula, reversing the order of the pancakes. For instance, in the following stack bottom . 2 3 | 5 1 4 . top Inserting the spatula between 3 and 5 will give: bottom 2 3 4 1 5 | top Design an algorithm to sort the pancake stack using this operation. Write a program to execute this algorithm in C++. What is the runtime efficiency (precisely, not just in Big-O time), assuming that a flip is an atomic operation? Is your algorithm optimal (again, precisely, not just asymptotically)?
Few questions on data structures and c++.
What were the inconsistencies between what we say vs how we think?
Which one is faster? insert or update sql command?
How will you swap two variables without using a third variable??
Write a program to reverse a string in any programming language? String should be of numbers 1 2 3 4 5.
Did u have interest in technical
Viewing 751 - 760 interview questions