Skip to content

Instantly share code, notes, and snippets.

View dheesimha's full-sized avatar
🎯
Focusing

Dheemanth Narasimha dheesimha

🎯
Focusing
View GitHub Profile

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@dheesimha
dheesimha / insert interval
Created September 15, 2020 07:34
Solution for insert interval leetcode
Problem URL : https://leetcode.com/explore/challenge/card/september-leetcoding-challenge/555/week-2-september-8th-september-14th/3458/
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
Example 1: