## HEADLINES

## Well done Team PWC, we did it.

It took us **74 weeks** to break the record of **2 consecutive** weeks of **100+ contributions**. Just to remind you it was right at the start, **Week #001** and **Week #002**. In between we did manage to cross the magical number but never once crossed **3 in a row**.

#### 1) Week #001: 142

#### 2) Week #002: 109

#### 3) Week #030: 115

#### 4) Week #033: 108

#### 5) Week #046: 106

#### 6) Week #072: 109

#### 7) Week #073: 108

#### 8) Week #074: 112

Having done this now, we should now aim to break the record of maximum contributions in a week. We have two targets to break, first `115`

and then `142`

. We did come very close to `115`

though. Never mind, lets take this challenge and don’t forget to have fun. We have enough members to easily break the record in theory. Even half of the total members (`182`

) contribute **2 each**, we can easily beat the all time record.

I really wanted to give each and every members a small token of gift who made this possible in the last **3 weeks**. Unfortunately we don’t have any fund to support at the moment. But I promise, as and when we find a sponsor, I would definitely share equally among all members who took part in the marathon.

To be honest, I was little nervous on **Sunday** morning. But the contributions keep coming in bulk. By **8 pm UK time**, we crossed the magic number. Since it doesn’t take into account of guest contributions, let me share another achievements by **Team PWC**. We beat the previous best of **19 contributions** in **9 different** languages in the **Week #073**. This week we have **28 contributions** in **10 different** languagees. So this week will remain very special for many reasons. I would like to **THANK**, each and every guest contributors.

#### 1) Python: 6

#### 2) C++: 5

#### 3) Haskell: 3

#### 4) APL: 2

#### 5) Clojure: 2

#### 6) Elm: 2

#### 7) Java: 2

#### 8) Lisp: 2

#### 9) Swift: 2

#### 10) Tcl: 2

While we are talking about contributions, lets share some interesting stats from **GitHub**.

#### 1) Commits: 8726

#### 2) Pull Requests: 2130

#### 3) Fork: 147

#### 4) Stars: 70

Last but not the least, I would like to thank each and every member for their support and encouragement.

## RECAP

Quick recap of the **“Perl Weekly Challenge - 074”** by **Mohammad S Anwar**.

## PERL REVIEW

Please checkout **Perl** solutions review of the **“Perl Weekly Challenge - 073”** by **Colin Crain**.

If you missed any past reviews then please checkout the **collection**.

## RAKU REVIEW

Please checkout **Raku** solutions review of the **“Perl Weekly Challenge - 073”** by **Andrew Shitov**.

If you missed any past reviews then please checkout the **collection**.

## CHART

Please take a look at the **charts** showing interesting data.

I would like to thank every member of the team for their valuable suggestions. Please do share your experience with us.

## NEW MEMBERS

#### Nuno Vieira, an experienced Perl hacker from Braga, Portugal joined the Team PWC.

With the above addition, we now have **182 members** in the **Team PWC**.

Please find out **How to contribute?**, if you have any doubts.

Please give it a try to an excellent tool **EZPWC** created by respected member **Saif Ahmed** of **Team PWC**.

## GUESTS

#### 1) Andrew Shitov shared solution to Task #1 in C++.

#### 2) Lubos Kolouch shared solutions to Task #1 and Task #2 in Python.

#### 3) Mohammad S Anwar shared solutions to Task #1 and Task #2 in Swift.

#### 4) Myoungjin Jeon shared solutions to Task #1 and Task #2 in Elm.

#### 5) Myoungjin Jeon shared solutions to Task #1 and Task #2 in Haskell.

#### 6) Myoungjin Jeon shared solutions to Task #1 and Task #2 in Lisp.

#### 7) Richard Park shared solutions to Task #1 and Task #2 in APL.

#### 8) Roger Bell_West shared solutions to Task #1 and Task #2 in Python.

#### 9) Shawn Wagner shared solutions to Task #1 and Task #2 in Java.

#### 10) Shawn Wagner shared solutions to Task #1 and Task #2 in Tcl.

#### 11) Tyler Wardhaugh shard solutions to Task #1 and Task #2 in Clojure.

#### 12) Ulrich Rieke shared solutions to Task #1 and Task #2 in C++.

#### 13) Ulrich Rieke shared solution to Task #1 in Haskell.

#### 14) Walt Mankowski shared solutions to Task #1 and Task #2 in C++.

#### 15) Walt Mankowski shared solutions to Task #1 and Task #2 in Python.

Please find out **past solutions** by respected **guests**. Please do share your creative solutions in other languages.

## TASK #1 › Coins Sum

**Submitted by:** Mohammad S Anwar

You are given a set of coins `@C`

, assuming you have infinite amount of each coin in the set.

Write a script to find how many ways you make sum `$S`

using the coins from the set `@C`

.

## Example:

```
Input:
@C = (1, 2, 4)
$S = 6
Output: 6
There are 6 possible ways to make sum 6.
a) (1, 1, 1, 1, 1, 1)
b) (1, 1, 1, 1, 2)
c) (1, 1, 2, 2)
d) (1, 1, 4)
e) (2, 2, 2)
f) (2, 4)
```

## TASK #2 › Largest Rectangle Histogram

**Submitted by:** Mohammad S Anwar

You are given an array of positive numbers `@A`

.

Write a script to find the largest rectangle histogram created by the given array.

#### BONUS: Try to print the histogram as shown in the example, if possible.

## Example 1:

#### Input: @A = (2, 1, 4, 5, 3, 7)

```
7 #
6 #
5 # #
4 # # #
3 # # # #
2 # # # # #
1 # # # # # #
_ _ _ _ _ _ _
2 1 4 5 3 7
```

Looking at the above histogram, the largest rectangle (4 x 3) is formed by columns (4, 5, 3 and 7).

#### Output: 12

## Example 2:

#### Input: @A = (3, 2, 3, 5, 7, 5)

```
7 #
6 #
5 # # #
4 # # #
3 # # # # #
2 # # # # # #
1 # # # # # #
_ _ _ _ _ _ _
3 2 3 5 7 5
```

Looking at the above histogram, the largest rectangle (3 x 5) is formed by columns (5, 7 and 5).

#### Output: 15

Last date to submit the solution **23:59 (UK Time) Sunday 30th August 2020**.