• 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

In Given LinkedList Divide LL in N Sub parts and delete first K nodes of each part

FizzBuzz Solution C C++

C++ OOPs Part1

Password Predictor

Best Java Book | Top Java Programming Book for Beginners

Client Server C program

TicTacToe Game As Asked in Flipkart

ADOBE Aptitude C Language Test

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

Find if a binary tree is height balanced ?

Mirror of Tree

Find min element in Sorted Rotated Array (Without Duplicates)

Skiing on Mountains Matrix

Sort an array according to the order defined by another array

Python List

Wrong Directions given find minimum moves so that he can reach to the destination

Diagonal Traversal of Binary Tree

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

Generate next palindrome number

Memory Efficient LinkedList

Walmart Labs Interview Experience

Print all nodes that are at distance k from a leaf node

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

Reliance Jio Software Developer Interview Experience

The greedy coins game Dynamic Programming

Difference between a LinkedList and a Binary Search Tree BST

Code Chef PRGIFT Solution

25 horses 5 tracks Find 3 fastest puzzle

Maximum occurred Smallest integer in n ranges

Check if an array has duplicate numbers in O(n) time and O(1) space

Copyright © 2026 · Genesis Framework · WordPress · Log in