Javascript Program to Move all zeroes to end of array
Given an array of random numbers, Push all the zero’s of a given array to the end of the array. For example, if the given arrays is {1, 9, 8, 4, 0, 0, 2, 7, 0, 6, 0}, it should be changed to {1, 9, 8, 4, 2, 7, 6, 0, 0, 0, 0}. The order of all other elements should be same. Expected time complexity is O(n) and extra space is O(1).Example:...
read more
LinkedIn Interview Experience | 5 (On Campus)
Recently LinkedIn came to our college campus to hire FTE’s. The profile was SRE (Site Reliability Engineer). Here I am sharing my Interview Experience. The process included 1 Online Coding round , 2 face to face Technical interviews , 1 face to face HR interview followed by a final telephonic HR....
read more
Minimize cost of painting N houses such that adjacent houses have different colors
Examples:...
read more
Extract Leaves of a Binary Tree in a Doubly Linked List
Given a Binary Tree, extract all leaves of it in a Doubly Linked List (DLL). Note that the DLL need to be created in-place. Assume that the node structure of DLL and Binary Tree is same, only the meaning of left and right pointers are different. In DLL, left means previous pointer, and right means next pointer....
read more
Serialize and Deserialize a Binary Tree
Serialization is to store the tree in a file so that it can be later restored. The structure of the tree must be maintained. Deserialization is reading the tree back from a file....
read more
Count ways to express a number as sum of consecutive numbers
Given an integer N, the task is to find the number of ways to represent this number as a sum of 2 or more consecutive natural numbers....
read more
C++ Program to Move all zeroes to end of array
Given an array of random numbers, Push all the zero’s of a given array to the end of the array. For example, if the given arrays is {1, 9, 8, 4, 0, 0, 2, 7, 0, 6, 0}, it should be changed to {1, 9, 8, 4, 2, 7, 6, 0, 0, 0, 0}. The order of all other elements should be same. Expected time complexity is O(n) and extra space is O(1).Example:...
read more
Data Structure Design for Two Sum III
You have to design a data structure that accepts a stream of integers and then checks if it has a pair of integers that added/sum up to a particular value....
read more
10 Best Linkedin Lead Generation Tools
LinkedIn is the best platform to leverage information at your fingertips and reach prospects with relevant content. However, if you want to tap into LinkedIn’s full potential, you will require efficient lead-generation tools to connect with the right people in the right way....
read more
Climbing Stairs to reach at the top.
There are n stairs, a person standing at the bottom wants to climb stairs to reach the nth stair. The person can climb either 1 stair or 2 stairs at a time, the task is to count the number of ways that a person can reach at the top....
read more
LinkedIn Interview Experience For SWE Internship (Off-Campus)
Interview Process for Software Engineer Intern at LinkedIn...
read more
LinkedIn Interview Experience | Set 3 (On-Campus)
LinkedIn Interview Experience (On Campus – Day 1)...
read more