Describe an algorithm that will take in a large input of English words that may contain duplicate. Then return only unique words from the input.
Software Engineer Interview Questions
466,457 software engineer interview questions shared by candidates
They asked me to extract words from the parse tree. e.g. ((NJ (NN James) XX is) (AJ tall)) -> James is tall. Another question is to reverse a string an capitalize all the starting positions of words and lower case all the ending positions of words. e.g. Hello World -> Dlrow Olleh
Write a function addSubtract that will do the following: addSubtract(5)(8)(3) -> 5 + 8 - 3 -> 10 addSubtract(2)(1)(1)(5)(3)(2) -> 2 + 1 - 1 + 5 - 3 + 2 -> 6 etc.
There were 2 questions: 1 design and 1 implementation. The design was something like the following: you have a billion google searches a day, design a data structure which lets you pull out the top 100 unique ones at the end of the day.
Find the maximal and minimal number in an array of integers
Define binary search tree. Develop a procedure to verify a binary search tree.
Wie würden Sie eine Reihung von einer Million Zahlen sortieren?
A task in which I was required to print all numbers between 1 and a million - with no repeating digits - Easy enough! Just can throw you off guard a bit
Ist ein 2D-Feld gegeben, das ein Feld beschreibt (0 = Wasser, 1 = Land), schreiben Sie einen Algorithmus, der die Anzahl der Inseln zählt (zwei Stücke Land berühren sich, wenn sie entweder vertikal oder horizontal nebeneinander liegen, nicht diagonal).
1. mutable, non mutable classes in Java 2. declaring constants in Java 3. x^y algorithm and its optimization. 4. second largest number from Binary Tree
Viewing 401 - 410 interview questions