Skip to content

Commit 3a5332d

Browse files
committed
- Added template for Challenge - 062.
1 parent bf9afa6 commit 3a5332d

File tree

166 files changed

+435
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+435
-0
lines changed

challenge-062/aaron-rowe/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Aaron Rowe.

challenge-062/aaron-sherman/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Aaron Sherman.

challenge-062/abigail/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Abigail

challenge-062/adam-russell/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Adam Russell

challenge-062/ailbhe-tweedie/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Ailbhe Tweedie

challenge-062/alex-daniel/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Alex Daniel.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Alexander Karelas

challenge-062/alicia-bielsa/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Alicia Beilsa.

challenge-062/andrezgz/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Andrezgz

challenge-062/anton-fedotov/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Anton Fedotov.

challenge-062/antonio-gamiz/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Antonio Gamiz

challenge-062/arne-sommer/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Arne Sommer.

challenge-062/arpad-toth/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Arpad Toth

challenge-062/athanasius/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Athanasius

challenge-062/aubrey-quarcoo/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Aubrey Quarcoo

challenge-062/ben-davies/README.md

Lines changed: 11 additions & 0 deletions

challenge-062/bill-palmer/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Bill Palmer.

challenge-062/bob-kleemann/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Bob Kleemann

challenge-062/bruno-ramos/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Bruno Ramos.

challenge-062/burkhard-nickels/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Burkhard Nickels.

challenge-062/bwva/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution(s) by bwva (Bruce Van Allen)

challenge-062/cheok-yin-fung/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Cheok-Yin Fung.

challenge-062/cliveholloway/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Clive Holloway

challenge-062/colin-crain/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Colin Crain.

challenge-062/creewick/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Creewick.

challenge-062/cristian-heredia/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Cristina Heredia.

challenge-062/daniel-mantovani/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Daniel Mantovani

challenge-062/daniel-mita/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Daniel Mita

challenge-062/darren-bottin/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Darren Bottin.

challenge-062/dave-cross/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Dave Cross

challenge-062/dave-jacoby/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Dave Jacoby

challenge-062/david-kayal/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by David Kayal

challenge-062/denis-yurashku/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Denis Yurashku.

challenge-062/donald-hunter/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Donald Hunter.

challenge-062/doug-schrag/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Doug Schrag

challenge-062/dracos/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Matthew Somerville.

challenge-062/duane-powell/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Duane Powell.

challenge-062/duncan-c-white/README

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Task 1: "Product SubArray
2+
3+
Given a list of 4 or more numbers, write a script to find the contiguous
4+
sublist that has the maximum product. The length of the sublist is
5+
irrelevant; your job is to maximize the product.
6+
7+
Example
8+
9+
Input: [ 2, 5, -1, 3 ]
10+
11+
Output: [ 2, 5 ] which gives maximum product 10.
12+
"
13+
14+
My notes: very straightforward.
15+
16+
17+
Task 2: "IPv4 Partition
18+
19+
You are given a string containing only digits (0..9). The string should
20+
have between 4 and 12 digits.
21+
22+
Write a script to print every possible valid IPv4 address that can be
23+
made by partitioning the input string.
24+
25+
For the purpose of this challenge, a valid IPv4 address consists of four
26+
'octets' i.e. A, B, C and D, separated by dots (.).
27+
28+
Each octet must be between 0 and 255, and must not have any leading
29+
zeroes. (e.g., 0 is OK, but 01 is not.)
30+
31+
Example
32+
33+
Input: 25525511135,
34+
35+
Output:
36+
37+
255.255.11.135
38+
255.255.111.35
39+
"
40+
41+
My notes: sounds quite straightforward, nice problem.

challenge-062/e-choroba/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by E. Choroba.

challenge-062/eddy-hs/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Eddy HS

challenge-062/fabrizio-poggi/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Fabrizio Poggi.

challenge-062/feng-chang/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Feng Chang.

challenge-062/finley/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Finley

challenge-062/fjwhittle/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Francis Whittle

challenge-062/fred-zinn/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Fred Zinn

challenge-062/freddie-b/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Freddie B
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Giuseppe Di Terlizzi.

challenge-062/guillermo-ramos/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Guillermo Ramos.

challenge-062/gustavo-chaves/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Gustavo Chaves

challenge-062/hauke-d/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Hauke Dämpfling.

challenge-062/ianrifkin/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Ian Rifkin.

challenge-062/izifresh/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by izifresh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jacques Guinnebault.

challenge-062/jaime/README

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Task #1
2+
3+
Write a script to display months from the year 1900 to 2019 where you
4+
find 5 weekends i.e. 5 Friday, 5 Saturday and 5 Sunday.
5+
6+
## Solution
7+
8+
Months that contain five full weekends have 31 days and start on a Friday. Use `cal` to display March 2019 as an example.
9+
10+
```
11+
#$ cal -h -m 3 2019 # cal is a UNIX utility
12+
March 2019
13+
Su Mo Tu We Th Fr Sa
14+
1 2
15+
3 4 5 6 7 8 9
16+
10 11 12 13 14 15 16
17+
17 18 19 20 21 22 23
18+
24 25 26 27 28 29 30
19+
31
20+
```
21+
22+
The solution runs `cal` and displays months that match this unique
23+
layout.
24+
25+
# Task #2
26+
27+
Write a script that can wrap the given paragraph at a specified column
28+
using the greedy algorithm.
29+
30+
A simple way to do word wrapping is to use a greedy algorithm that
31+
puts as many words on a line as possible, then moving on to the next
32+
line to do the same until there are no more words left to place. This
33+
method is used by many modern word processors, such as OpenOffice.org
34+
Writer and Microsoft Word[citation needed]. This algorithm always uses
35+
the minimum possible number of lines but may lead to lines of widely
36+
varying lengths. The following pseudocode implements this algorithm:
37+
38+
```
39+
SpaceLeft := LineWidth
40+
for each Word in Text
41+
if (Width(Word) + SpaceWidth) > SpaceLeft
42+
insert line break before Word in Text
43+
SpaceLeft := LineWidth - Width(Word)
44+
else
45+
SpaceLeft := SpaceLeft - (Width(Word) + SpaceWidth)
46+
```
47+
48+
Where LineWidth is the width of a line, SpaceLeft is the remaining
49+
width of space on the line to fill, SpaceWidth is the width of a
50+
single space character, Text is the input text to iterate over and
51+
Word is a word in this text.
52+
53+
## Solution
54+
55+
The solution follows the recommended pseudocode. Minor improvements
56+
avoid trailing whitespace.
57+
58+
The script uses `Text::ParseWords::shellwords` from the standard
59+
library to extract chunks of words from `<STDIN>`.

challenge-062/jaldhar-h-vyas/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jaldhar H. Vyas

challenge-062/james-smith/README.md

Lines changed: 129 additions & 0 deletions

challenge-062/jaredor/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jared Martin

challenge-062/javier-luque/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Javier Luque.

challenge-062/jeff/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jeff

challenge-062/jeremy-carman/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jeremy Carman

challenge-062/jim-bacon/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jim Bacon

challenge-062/jitu-keshwani/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Jitu Keshwani.

challenge-062/jj-merelo/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by JJ Merelo

challenge-062/jo-37/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jo S.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jo Christian Oterhals

challenge-062/joe-tym/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Joe Tym.

challenge-062/joelle-maslak/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Joelle Maslak

challenge-062/john-barrett/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by John Barrett

challenge-062/jokraft/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Jan Ole Kraft.

challenge-062/juan-caballero/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Juan Caballero

challenge-062/julien-fiegehenn/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Julien Fiegehenn.

challenge-062/kevin-colyer/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Solutions by Kevin Colyer.
2+
3+
I think there is some odd bug - my initial tries at rotating the matrix affected the original matrix even when I DIDN'T specify is rw in the sub.

challenge-062/khalid/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Khalid

challenge-062/kian-meng-ang/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Kian-Meng Ang

challenge-062/kiran-kumar/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solutions by Kiran Kumar.

challenge-062/kivanc-yazan/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_Inline/
2+
*.sw*

challenge-062/kivanc-yazan/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Kivanc Yazan

challenge-062/lars-balker/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Lars Balker

challenge-062/lars-thegler/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Solution by Lars Thegler

0 commit comments

Comments
 (0)