DiamondI's blog

Home

About

Archives

loading..

东极岛之旅

东极岛之旅 清明节,同几个小伙伴一起到东极岛游玩。幸运的是清明无雨,我们也得以玩得尽兴。 东极岛实际上并不是一个正式的地理名称,也不是一个单独的岛屿,而是习惯上对浙江省舟山市普陀区东极镇所辖的所有岛屿的总称,其地理上的正式名称应该是“中街山列岛”。它是电影《后会无期》的重要拍摄地点,也有“海上丽江”之称。

Read more

LeetCode - 934. Shortest Bridge

934. Shortest Bridge Description In a given 2D binary array A, there are two islands. (An island is a 4-directionally connected group of 1s not connected to any other 1s.)

Read more

300. Longest Increasing Subsequence

300. Longest Increasing Subsequence Description Given an unsorted array of integers, find the length of longest increasing subsequence. (For this question, it’s stricly increasing.)

Read more

284. Peeking Iterator

LeetCode 284. Peeking Iterator Description Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation – it essentially peek() at the element that will be returned by the next call to next().

Read more

215. Kth Largest Element in an Array

215. Kth Largest Element in an Array Description Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.

Read more
1234