• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

LeetCode

Leetcode: Merge Intervals

January 18, 2020 by Arshdeep Singh

Given a collection of intervals, merge all overlapping intervals.

Example 1:
Input: [[2,6],[8,10],[15,18], [1,3]]
Output: [ [1,6] , [8,10] , [15,18] ]
Explanation: Since intervals [1,3] and [2,6] overlaps, merge them into [1,6].

Example
Solution
… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Google, Interview Questions, LeetCode Tagged With: Array, LeetCode, MergeIntervals

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Find if a binary tree is height balanced ?

Find and print longest consecutive number sequence in a given sequence in O(n)

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

Find min element in Sorted Rotated Array (Without Duplicates)

Find next greater number with same set of digits

Microsoft BING Interview Experience

Subset Sum Problem Dynamic programming

Given a float number convert it into the string WITHOUT using any inbuilt Function

Maximum difference between two elements s.t larger element appears after the smaller number

Find an index i such that Arr [i] = i in array of n distinct integers sorted in ascending order.

Sort an array according to the order defined by another array

Sort Stack in place

Implement LRU Cache

TicTacToe Game As Asked in Flipkart

Cisco Hiring Event 21st – 22nd Feb 2015

Find the smallest window in a string containing all characters of another string

Mirror of Tree

Maximum of all subarrays of size k

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

Password Predictor

Print vertical sum of all the axis in the given binary tree

Binary Tree in Java

There are N nuts and N bolts, u have to find all the pairs of nuts and bolts in minimum no. of iteration

The Magic HackerEarth Nirvana solutions Hiring Challenge

BlueStone E-commerce Interview Experience

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

How strtok() Works

‘N’ Story Building, with 1,2,3 steps how many ways can a person reach top of building.

Difference between a LinkedList and a Binary Search Tree BST

Python List

Copyright © 2025 · Genesis Framework · WordPress · Log in