• 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 shortest distances between every pair of vertices ( Dynamic Programming Floyd Warshall Algorithm)

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

Find if two rectangles overlap

Python Dictionaries

Cisco Hiring Event 21st – 22nd Feb 2015

Binary Tree in Java

Knight Tour Problem (Graph – Breadth First Search)

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

Trapping Rain Water

Maximum occurred Smallest integer in n ranges

Common Ancestor in a Binary Tree or Binary Search Tree

Generate next palindrome number

VMWare Openings

SAP Off Campus Hiring_ March 2015 Computer Skills

Number of Islands BFS/DFS

Printing Longest Common Subsequence

Reverse a Linked List in groups of given size

Maximum of all subarrays of size k

Maximum size of square sub matrix with all 1’s in a binary matrix

Level order traversal in Spiral form

Find min element in Sorted Rotated Array (Without Duplicates)

Length of the longest substring without repeating characters

Binary Tree Isomorphic to each other

LeetCode: Container With Most Water

Sequence Finder Dynamic Programming

Binary Tree in Java

simple sql injection

CodeChef Code SGARDEN

Python List

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

Copyright © 2026 · Genesis Framework · WordPress · Log in