Description

Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.

Note:

  1. You may assume the interval’s end point is always bigger than its start point.
  2. Intervals like [1,2] and [2,3] have borders “touching” but they don’t overlap each other.
Read more »

Description

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

An input string is valid if:

  1. Open brackets must be closed by the same type of brackets.
  2. Open brackets must be closed in the correct order.

Note that an empty string is also considered valid.

Read more »

Description

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

Read more »

零、背景

Mac Book Pro (MBP)一直是极客开发者首选的操作系统,然而在工作中,并不是每个公司都会为开发者配备 MBP 的,然而,相信有强迫症的程序员都无法忍受 Windows 的命令行工具,我也不例外。好再微软在 2019 年 5 月推出了一款 Windows Terminal(截至作者撰稿时,仅 Preview 版可用),可以说给基于 Window 开发的程序员带来了福音。

Read more »
0%