Write a program to accept pool of strings and accept 1 choice between 4 operations and do the selected operation 1.Undo(Remove last entered string) 2.Redo(Again add the removed string) 3.Display(Display the pool after operation) 4.Exit(exit the pool)
Developer Interview Questions
269,109 developer interview questions shared by candidates
If you were given two words and needed to determine if the words were anagrams, how would you go about doing this?
1. Pattern making 2.Find second max no
Read whatever questions you can see on Google for your profile.
A company is assigning four tasks - Payroll, Inventory, Marketing, and Sales-to four employees: Aaliyah, Brent, Claire, and David. Each employee will handle exactly one task, which will be assigned to exactly one employee. The following conditions apply. • If Aaliyah is assigned Payroll, then David must be assigned Inventory. • If Brent is assigned Marketing, then Claire cannot be assigned Sales. • If Claire is assigned Inventory, then Aaliyah must be assigned Sales. Which of the following assignments is possible? Options 1. Aaliyah: Payroll, Brent: Inventory, Claire: Marketing, David: Sales 2. Aaliyah: Payroll, Brent: Marketing, Claire: Sales, David: Inventory 3. Aaliyah: Marketing, Brent: Sales, Claire: Inventory, David: Payroll 4. Aaliyah: Payroll, Brent: Sales, Claire: Inventory, David: Marketing 5. Aaliyah: Sales, Brent: Marketing, Claire: Inventory, David: Payroll
You have a set of stairs. You can only move one or two steps at a time. Calculate how many possible combinations of moves can be made to traverse the exact number of steps, for any given total number of steps.
Find the smallest sublist size in a list of lists. Then after I came up with an algorithm that used List.length to compare which is an O(n^2) algorithm, he asked how could this be improved, which stumped me.
Python question: what is the difference between "[x for x in range(3)]" and "(x for z in range(3))"
When was a time you were most dissatisfied in your career?
2) You have two jugs. One of 5lts and one of 3lts. You want 4lts of water. (You also have abundant supply of water.) How do you measure out exactly 4lts using the jugs?
Viewing 871 - 880 interview questions