given a large array of int return the length of the longest increasing(non-necessarily-adjacent) sub-sequence
Engineers Interview Questions
843,412 engineers interview questions shared by candidates
Given an array of integers arranged in a way that they are first in a strictly increasing sequence and then after a certain point they are arranged in a strictly decreasing sequence. Find the max value in that array For ex: [3,6,8,13,20,35,33,30,21,17,14,2,1,-2] : 35 is the max in this array
Find the max number in an array between start and end. The function would like: findMaxbetween(start, end, array): return maxNumber
Q1: You have been given an Array of Strings and you have to find out which string occurrence is maximum. If there is a tie then take the last string. For eg: input = {cat, dog, lion, cat, lion, dog, hen, cat, dog} then output = dog Q2: You have been given a error log file and you have to output the ERROR logs in between any two dates of the month. Q3: you have been given a text file: a) replace word Amazon with Andy in first 50 lines. b) replace word Amazon with Andy from 50th line till the last line. Q4: You have been given a table name world where you would have to output from table city if city is not null else output the table country.
Write code to find the nth fibonacci number.
Coding the fibonacci algorithm.
Given a 5x5 board containing random characters, find all words that can be formed from consecutive adjacent (diagonals count) characters.
different between array and heap
Find the least common ancestor of 3+ nodes, in a binary tree wher the nodes only point to their parents. No child pointers.
Given an array and a sum, determine if any of the items add up to sum. Do a linear space solution and constant time solution.
Viewing 2611 - 2620 interview questions