In Array find largest second number ?
Software Engineer C Interview Questions
665,683 software engineer c interview questions shared by candidates
Write algorithm to compute the intersection of two arrays. What is the time complexity of this algorithm (using the big O notation)?
Which sorting algorithm would be good for sorting small-sized integer arrays and why? What is the performance? What about for large-sized integer arrays?
print all permutations of a string
(1) two sums : given a list of numbers, return the indexes of two values whose sum is a given value. (2) Revers a string list
Given an array, find there are 3 numbers have when we add them the value will equals a specified sum Example: {1,4,6,10,20,21} Sum=32, Result:true (1+10+21) Sum=65, Result:false
-What does the assignment X=(X)&(X-1) do? Use this to count number of 1s in a number.
Write code to return a sorted array of int, when passed in 2 sorted array of int to the method.
Sum up integer array?
1. What is a virtual? 2. If class has virtual function, what happens in compile time and in run time? 3. What is a polymorphism? 4. Write the function that gets array of chars and returns number of elements with 3 bits ON, performance is important. 5. Write the function that draws a line from x1,y1 to x2,y2 6. You have very long function with many return statements. You have to determine how much time it runs.
Viewing 1471 - 1480 interview questions