• 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

Handle duplicates in Binary Search Tree

Test Cases for Round Function

Length of the longest substring without repeating characters

Maximum occurred Smallest integer in n ranges

Count Possible Decodings of a given Digit Sequence

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

Puzzle : 100 doors in a row Visit and Toggle the door. What state the door will be after nth pass ?

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

Trie Dictionary

Add Sub Multiply very large number stored as string

Daughter’s Age VeryGood Puzzle

ADOBE Aptitude C Language Test

LeetCode: Container With Most Water

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Advanced SQL Injection

How Radix sort works

The greedy coins game Dynamic Programming

Fibonacci Hashing & Fastest Hashtable

Find the kth number with prime factors 3, 5 and 7

Maximum of all subarrays of size k

Word Break Problem

Find loop in Singly linked list

Find Percentage of Words matching in Two Strings

Sort Stack in place

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

Stickler thief

Search element in a matrix with all rows and columns in sorted order

Apriori algorithm C Code Data Mining

Code Chef PRGIFT Solution

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

Copyright © 2026 · Genesis Framework · WordPress · Log in