Join Regular Classroom : Visit ClassroomTech

Deutsche Bank Interview Questions + Coding Solutions – codewindow.in

Hot Topics

Deutsche Bank Solution

Technical Round

I have 10 weights. 9 of them are equal, 1 is of a different weight. You only have a way to compare weights of items with other items. How many moves would it take you to determine the rogue weight?

To determine the rogue weight, you need log2(n) moves, where n is the number of weights. In this case, it would take log2(10) = 3.32 moves.

If there are 3 lightbulbs in a room, and 3 light switches in another room how do you know which bulb belongs to which switch?

You can determine which bulb belongs to which switch by performing the following steps:
  1. Turn on the first switch and keep it on for a few minutes.
  2. Turn off the first switch and turn on the second switch.
  3. Observe which bulb is now on. This bulb belongs to the first switch.
  4. Repeat the process for the rest of the switches and bulbs.

SQL joins

SQL join is used to combine rows from two or more tables based on a related column between them. The related column is used to match rows from both tables and return a result set containing the combined data.

Code for sum of all the digits from 1 to 50

Here is a code snippet to find the sum of all digits from 1 to 50 in Python:
def sum_of_digits(n):
    return sum([int(i) for i in str(n)])

def main():
    sum = 0
    for i in range(1, 51):
        sum += sum_of_digits(i)
    print(sum)

if __name__ == '__main__':
    main()

Nagarro Solved

Automata Fixing

      

We Love to Support you

Go through our study material. Your Job is awaiting.

Recent Posts
Categories