If I have a jar with 1000 coins and one is double headed and I pick one coin randomly and flip 10 heads what is the probability it is the double headed coin?
Desarrollador Python Interview Questions
711,032 desarrollador python interview questions shared by candidates
aptitude questions, logical ability, data interpretation,reading comprehention
Given an integer, re-arrange the integer such that first and last digit will be at first and second, second and second last digit will be at third and fourth position from left of the re-arranges integer and so on. Example: Input -> 12345678, Output -> 18273645 Input -> 1234567, Output -> 1726354
How to convert an Optional string to integer without throwing exception
Question: Given a string comprising of all words of a text book. Find out the no of individual strings and their occurrences.
find number of 1's in a number
if i type character 'A' in text file and save it, what will be size of the file
given #define A 2 + 3 #define B 2 printf("%d", A * B) what does this print?
1. Given an array of n integers. Derive an array where the value of the element at index i is the product of elements in the given array except element i in the given array. The complexity should be O(n). 2. How to traverse timing graph starting from the input nodes? Data structure of the nodes in the graph is given. Write a C program for it. 3. Implement C++ hashing function.
Take a ladder with 5 steps, write a function that gives all the possible combinations of either 1,2, or 3 steps, in any order, to get to the 5th step, and returns the total number of combinations. So some of the possibilities would be [1,1,1,1,1], [1,1,1,2], [1,1,2,1], etc. Then he asked the same question with order not being considered, so [1,1,1,2] and [1,1,2,1] are the same solution.
Viewing 1121 - 1130 interview questions