Write a method that counts how many elements in an unsorted array are out of order.
Software Engineers Interview Questions
418,794 software engineers interview questions shared by candidates
Given a string of numbers, you can interpolate basic operations (+, -, * and /) to create an equation that can be evaluated using simple math. Given a string of numbers and a value, write a method that prints all of the equations that can be generated using that string that evaluate to the given value. ex- f("323",3) will print out "3 * 2 - 3"
A few questions on basic command-line syntax in Unix shells: 1. How would you log output and error messages from a command to a file? 2. How would you run the same command on every file in a directory? 3. How would you find the PID of a named process (say if you wanted to kill it)?
Merging of Sets: Sets Users which reference other user groups.
Java: how do you make n threads run at the same time?
Write a program to fetch even natural numbers
Coding questions on String, Bit manipulation, trees, etc.
Given two files that has list of words (one per line), write a program to show the intersection.
You have a n number of cities. Lets say city 1 has some information that needs to be sent to all other n-1 cities using minimal cost. Cost between each pair of cities is given. any number of cities can transmit the information once they receive the information but the overall total cost should be minimum
You have a genealogy: 1) Describe a data structure to represent it. 2) Given any two people within the genealogy, describe an algorithm to determine if they share a common ancestor. You just need to return true/false, not all ancestors.
Viewing 411 - 420 interview questions