Problems like "given an 2D binary grid grid which represents a map of land and water, return the number of islands, an island is XXXX".

  • 200. Number of Islandsopen
  • 1020. Number of Enclavesopen
  • 1254. Number of Closed Islands
  • 1905. Count Sub Islandsopen
  • 695. Max Area of Island

Ref: labuladong 题解

Read more »

牙齿健康的常识, 以及常见牙科手术的说明, 包括补牙(Tooth filling), 拔智齿(Wisdom Teeth Extraction), 根管治疗(Root canal therapy).

Read more »

174. Dungeon Game

The demons had captured the princess and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of m x n rooms laid out in a 2D grid. Our valiant knight was initially positioned in the top-left room and must fight his way through dungeon to rescue the princess.

Read more »

There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i].

You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from the ith station to its next (i + 1)th station. You begin the journey with an empty tank at one of the gas stations.

Given two integer arrays gas and cost, return the starting gas station's index if you can travel around the circuit once in the clockwise direction, otherwise return -1. If there exists a solution, it is guaranteed to be unique

134. Gas Station

Read more »
0%