1111-1120

1111. Maximum Nesting Depth of Two Valid Parentheses Strings $\star\star$

1112. Highest Grade For Each Student $\star\star$

1113. Reported Posts $\star$

1114. Print in Order $\star$

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Foo {
 public:
  Foo() {
    mutex2.lock();
    mutex3.lock();
  }

  void first(function<void()> printFirst) {
    printFirst();
    mutex2.unlock();
  }

  void second(function<void()> printSecond) {
    mutex2.lock();
    printSecond();
    mutex3.unlock();
  }

  void third(function<void()> printThird) {
    mutex3.lock();
    printThird();
  }

 private:
  mutex mutex2;
  mutex mutex3;
};

1115. Print FooBar Alternately $\star\star$

1116. Print Zero Even Odd $\star\star$

1117. Building H2O $\star\star$

1118. Number of Days in a Month $\star$

1119. Remove Vowels from a String $\star$

1120. Maximum Average Subtree $\star\star$