Given a list of points in the 2D xy plane, determine how many of those points can maximally exist on a line (not necessarily through the origin). So find the line that contains the most points, and return how many points are on that line.
Software Interview Questions
551,386 software interview questions shared by candidates
Given a sum, find two numbers in an array with that sum.
given an integer input stream, and more and more integers are still going in. build an algorithm to return 3 minimum integers at any point of time.
A file system search question, but using a set of predefined apis and data structures which included pre-populated files.
Given an array of character you must delete all the characters that got repeated 3 or more times consecutively and add " " in the end of the array for every deleted character Example "aaabbbcddddd"->"c "11 spaces "xxaaavbbbc" ->"xxvc " "xavvvarrrt"->"xaat " The problem must be solved in: O(1) memory O(n) time And you can't overwrite a cell in the array more than once
How do we find if a linked list has a loop..
Flatten a 2D linkedList . A node contains 3 parameters namely, data , pointer to left, pointer to down . The aim of the function is to flatten the linkedlist. Ex: 1-->2-->4 | V 3 Answer is 1-->2-->3-->4 Ex: 1 --> 2--> 3--> 4 | 5-->6-->7 | | 8 9 Answer is 1-->2->5 -> 8 -> 6->9 ->7-> 3-> 4 He asked me to make the same linkedlist flatten not to create a new LinkedList or print the elements
In place sort algorithm for removal of successive same alphabets in O(n) time complexity. i.e. bloooommbbergg should return blomberg
Given a binary tree (not a BST), print the nodes at a given level n passed as an input parameter. Here is how method definition looked like: public void printLevel(root, level)
what is the best way to find the duplicates within two intersecting linked list?
Viewing 3041 - 3050 interview questions