Balance a string with parentheses. "a(b)" -> "a(b)"; "(((((" -> ""; "(()())" -> "(()())"; ")ab(()" -> "ab()"; etc...
Software Interview Questions
551,386 software interview questions shared by candidates
Given an array of integers, write an algorithm that brings all the 0 elements to the end of the array and returns the # of non-zero elements.
given sorted circularly linked list how would you insert an element in it?
HR: hash function search time, what is O(n) Programming: write a function that get an int array, each int has category which can receive by a given function. category is one of (0,1,2). eg Array[1]=20, get_category(20)=1 sort the int array by the int category. following question, sort without addition array\space
Given an array of integers find a contiguous subset that sums to a given number
About assembly implementation of spinlock?
the interviewer ask me how to optimize the strstr() brute force method, and I said we can use KMP algorithm to do it, then he move on, and don't ask me to implement it.
Questions - Print all paths in a binary tree - Function to find the square root of a number - Pretty print JSON object - How would you design home feed? - Simple regex matcher
1. Binary Tree level order traversal 2. Given a string and a pattern '.' Matches any single character. '*' Matches zero or more of the preceding element.), find the first substring matching this pattern.
Given an integer array and an input int x, return value of one or more int in the array that equals to int x.
Viewing 3101 - 3110 interview questions