2 Coding questions, providing complete solution is the main thing they want and not the optimization.
Software Engineer C Interview Questions
665,794 software engineer c interview questions shared by candidates
It was all straight forward, I was very impressed the way they conducted all interviews.
what is add? why pdd helpful for us?
Getting the min from a stack in O(1) time
Check if a string which represents a math exercise is balanced in terms of parentheses Remove spaces from a string
How to write an evaluator for a string like "(1+3 * ( 5 / 4)) and get a numeric result.
Give an example of real world scenario where you see inheritance?
Find the maximum product of 3 numbers in a list.
1) I have class hierarchy and should create array of different instances of this hierarchy. They asked me to write a function which iterates this array and executes different methods according to the instance class. I suggested that downcasting is a bad idea and that it can violate Liskov substitution rule of the SOLID principles, and this problem should be solved using collections and generics, but they did not accept this answer 2) Create Queue N size using only N size array. 3) some Java concurrency related questions: synchronized volatile, atomic, etc....
Given an array of unique non-negative integers, {A1,…,An}, and a positive integer, X, write a function that finds all pairs of numbers in the array that sum to X”. You are given an integer array nums sorted in ascending order (with distinct values), and an integer target. Suppose that nums is rotated at some pivot unknown to you beforehand (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).” Take a singly-linked list, and reorder in such a way that the first element points to the last element, second element points to second-to-last element, and so on.
Viewing 1781 - 1790 interview questions