Given an array of integers, implement a class to take a snapshot. In particular 2 methods: - int takeSnaphost() //returns the snapshot id - int getFromSnapshot(int snapshotId, int arrayIndex)
Software Engineer C Interview Questions
665,794 software engineer c interview questions shared by candidates
Three questions; two on algorithms and one on debugging.
Given two strings with the same characters except for one additional character in one string, return that additional character.
Give you a 16 bit binary number. How do you change the 11th and 12th bit to some given number.
Given an array of numbers, return the longest substring in which the difference between every consecutive number pair varies difference in sign (I.e. +-+-)
Implement a Sudoko puzzle validator - given a 9x9 matrix of numbers (1-9) and "." for empty spaces, return true for a valid puzzle matrix and false if it would not be a valid sudoku puzzle.
Q. Write a function that takes two trees as an argument and returns true if they are equal.
The problems are not hard.
Given a list of number from 1 to N. All of them written three times, except one number (written 1 or 2 times). Find the number
Given a file that represent a graph, write an algorithm that compute the number of triangles in the graph.
Viewing 1641 - 1650 interview questions