1) If Child class has parameterized constructor and parent class has default constructor . will it work
Engineers Interview Questions
841,839 engineers interview questions shared by candidates
You’re given a board game which is a row of squares, each labeled with an integer. This can be represented by a list, e.g. [1, 3, 2, 0, 5, 2, 8, 4, 1] Given a start position on the board, you “win” by landing on a zero, where you move by jumping from square to square either left or right the number of spaces specified on the square you’re currently on. Your task is to implement the function: def can_win(board, pos): returns True if you can win the board from that starting pos, False otherwise
We have a fairly large log file, about 5GB. Each line of the log file contains an url which a user has visited on our site. We want to figure out what's the most popular 100 urls visited by our users.
given a number as a string write a algorithm to map to its oral description. I.e. "1" -> "11" //this can be thought of as there is one one. "11" -> "21" // there are two ones "21" -> "1211" // there is one two and one one "1211" -> "111221" ect. //there is one one, one two and two ones
How to find the only different number in two unsorted arrays?
The most unexpected question was to write a program that would take a 3x3 matrix and move around the values. [[1 2 3][4 5 6][7 8 9]] -> [[9 8 7][6 5 4][3 2 1]] like this.
You are going to take some numbers as an input from a file. You need to witer a program to find longest increasing sequence. You should process it as soon as you are taking an input. After finishing the last input immediately you should be able to tell the sequence. Input: 1 5 3 4 6 4 Output: 3 4 6
Q: Write a function that can tell if a string is a palindrome regardless of punctuation or capitalization?
For a 1GHz bandwidth oscilloscope, what will happen if you use it to monitor a 1GHZ square wave. If the Vpp of the square wave is 1V, what's the Vpp of the waveform shown on screen.
Write a program which stores the results of the numbers in a Fibonancci sequence in an array
Viewing 731 - 740 interview questions