# Infrastructure Engineer Interview Questions

Infrastructure engineer interview questions shared by candidates

## Top Interview Questions

Write a function that takes 2 arguments: a binary tree and an integer n, it should return the n-th element in the inorder traversal of the binary tree. Correct answer should be something like this: int FindNthElement(Node *node, int &n) { if (node->Left && n > 0) { k = FindNthElement(node->left, n); if (n == 0) return k; } if (n == 0) return node->value; else if (n > 0 && node->right) { k = FindNthElement(node->right, n); if (n == 0) return k; else return -1; } } int findNthElementByInorder(Node *node, int &n) { if (node == null) return -1; findNthElementByInorder(node->left, n); if (n == 0) return node-> value; else n--; findNthElementByInorder(node->right, n); } Seems it should be something like this, get the to bottom and start counting up from there. int start(Node *node, int &n) { int element = 0; if (node == null) return -1; return findElementIndex(node, element, n); } int findElementIndex(Node *node, int ¤tNumber, int findNumber) { if(node->left != null ) { int result = findElementIndex(node->left, currentNumber, findNumber); if(result != -1) return result; } if(node->right != null ) { int result = findElementIndex(node->right, currentNumber, findNumber); if(result != -1) return result; } currentNumber++; if(currentNumber == findNumber) return node->value; else return -1; } Show More Responses |

Given 2 very large numbers, each of which is so large it can only be represented as an array of integers, write a function to multiply them. |

Write a function to compute the square root of a number without using any built-in functions. |

If a large sequence of commits are in the main (master) branch of a git repository and only a subset are desired for a new branch, how would you create that new branch? |

How would you check if a binary tree is balanced? |

What command do you use to find OSPF neighbors? Seriously? |

I was asked a few questions about software engineering in a language I didn't know. |

DO you InfiniBand fabrics ? Communication with IB is faster or on TCP ? Why ? |

How many communication protocols you know for data transmission ? |

Would ask a questions and when I began to answer he would interrupt to challenge the answer. I hadn't given the answer. |

**1**–

**10**of

**137**Interview Questions

## See Interview Questions for Similar Jobs

- Software Engineer
- Senior Software Engineer
- Software Development Engineer
- Software Developer
- Software Engineer Intern
- Infrastructure Engineer
- Intern
- Principal Software Engineer
- Data Scientist
- Software
- Software Engineering Intern
- Senior Software Development Engineer
- Program Manager