归档 2019

[LeetCode]Optimize Water Distribution in a Village

题目描述:

LeetCode 1168. Optimize Water Distribution in a Village

There are n houses in a village. We want to supply water for all the houses by building wells and laying pipes.

For each house i, we can either build a ...

继续阅读

[LeetCode]Print in Order

题目描述:

LeetCode 1114. Print in Order

Suppose we have a class:

public class Foo {
  public void first() { print("first"); }
  public void second() { print("second"); }
  public void third() { print("third"); }
}

The same instance of Foo will be passed ...

继续阅读

[LeetCode]Next Greater Node In Linked List

题目描述:

LeetCode 1019. Next Greater Node In Linked List

We are given a linked list with head as the first node.  Let's number the nodes in the list: node_1, node_2, node_3, ... etc.

Each node may have a next larger value ...

继续阅读

每月存档

去年

明年