Skip to content

Commit

Permalink
Fix minimalist spec issue
Browse files Browse the repository at this point in the history
  • Loading branch information
heubeck committed Jun 30, 2023
1 parent 0fd2ffa commit 59148f8
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 71 deletions.
10 changes: 6 additions & 4 deletions 3_Java_Minimalist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ The task is to sort the words of a given text by a defined weight:
* The weight of a word is the sum of its characters ascii value (`aBc` = 98 + 66 + 99 = 263)
* Punctuation characters (`.`, `,`, `?`, `!` and so on) shall be ignored
* The words shall be sorted descending by their weight and outputted as distinct list as follows:
```text
<heavy word>|<weight>
<light word>|<weight>
```
If two words have exactly the same weight, they should be sorted descending by the ascii codes of their first character (on equality the second char, and so on).

```text
<heavy word>|<weight>
<light word>|<weight>
```
It is disallowed to use any third party dependencies.

## Implementation

Expand Down
62 changes: 31 additions & 31 deletions 3_Java_Minimalist/spec.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
aliquet|757 \
commodo|750 \
Quisque|749 \
aliquam|746 \
iaculis|746 \
aliquam|746 \
varius|666 \
mauris|657 \
lectus|656 \
Expand Down Expand Up @@ -85,17 +85,17 @@
Technology|1052 \
challenges|1046 \
solutions|1008 \
MediaWorld|1000 \
ourselves|1000 \
MediaWorld|1000 \
customers|997 \
countless|992 \
MediaMarkt|991 \
extremely|991 \
MediaMarkt|991 \
important|990 \
improving|987 \
equipment|984 \
relatives|975 \
trainings|975 \
relatives|975 \
locations|972 \
companies|959 \
including|957 \
Expand All @@ -105,8 +105,8 @@
Therefore|932 \
childcare|927 \
promotes|889 \
consumer|876 \
provides|876 \
consumer|876 \
business|876 \
longterm|872 \
thousand|870 \
Expand All @@ -128,13 +128,13 @@
support|797 \
ensures|773 \
variety|772 \
through|769 \
working|769 \
through|769 \
running|769 \
further|768 \
growing|765 \
passion|765 \
outside|765 \
growing|765 \
success|761 \
provide|761 \
peoples|760 \
Expand All @@ -144,8 +144,8 @@
diverse|754 \
members|747 \
shaping|746 \
biggest|741 \
relaxed|741 \
biggest|741 \
Europes|739 \
freedom|738 \
already|738 \
Expand All @@ -156,27 +156,27 @@
stores|672 \
simply|670 \
strive|669 \
future|667 \
spirit|667 \
growth|667 \
future|667 \
newest|662 \
always|657 \
values|656 \
trends|656 \
drives|653 \
matter|653 \
things|653 \
matter|653 \
latest|653 \
online|645 \
drives|653 \
people|645 \
online|645 \
offers|645 \
giving|644 \
family|642 \
hybrid|642 \
family|642 \
retail|641 \
Sprint|640 \
Saturn|637 \
having|637 \
Saturn|637 \
enrich|633 \
making|631 \
career|626 \
Expand All @@ -190,26 +190,26 @@
youre|564 \
terms|555 \
thats|548 \
lives|547 \
touch|547 \
other|546 \
lives|547 \
times|546 \
other|546 \
focus|544 \
think|542 \
sense|542 \
right|542 \
think|542 \
plans|542 \
TALENTS|539 \
about|539 \
TALENTS|539 \
teams|538 \
while|537 \
these|537 \
means|532 \
great|531 \
loads|531 \
great|531 \
shape|529 \
force|527 \
needs|527 \
force|527 \
Group|525 \
Scrum|522 \
ideas|518 \
Expand All @@ -227,32 +227,32 @@
with|444 \
this|440 \
love|438 \
well|436 \
what|436 \
well|436 \
from|436 \
more|435 \
were|435 \
more|435 \
that|433 \
join|432 \
time|431 \
best|430 \
them|430 \
both|429 \
best|430 \
cool|429 \
both|429 \
than|427 \
does|427 \
core|425 \
help|425 \
home|425 \
help|425 \
core|425 \
team|423 \
like|421 \
have|420 \
find|417 \
mean|417 \
find|417 \
make|414 \
With|412 \
feel|412 \
need|412 \
feel|412 \
With|412 \
care|411 \
This|408 \
each|401 \
Expand All @@ -265,8 +265,8 @@
use|333 \
new|330 \
bus|330 \
box|329 \
fun|329 \
box|329 \
for|327 \
one|322 \
the|321 \
Expand All @@ -288,8 +288,8 @@
or|225 \
on|221 \
no|221 \
is|220 \
we|220 \
is|220 \
API|218 \
in|215 \
of|213 \
Expand Down
10 changes: 5 additions & 5 deletions 4_JavaScript_Minimalist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ The task is to sort the words of a given text by a defined weight:
* The weight of a word is the sum of its characters ascii value (`aBc` = 98 + 66 + 99 = 263)
* Punctuation characters (`.`, `,`, `?`, `!` and so on) shall be ignored
* The words shall be sorted descending by their weight and outputted as distinct list as follows:

```text
<heavy word>|<weight>
<light word>|<weight>
```
```text
<heavy word>|<weight>
<light word>|<weight>
```
If two words have exactly the same weight, they should be sorted descending by the ascii codes of their first character (on equality the second char, and so on).

It is disallowed to use any third party dependencies. This is why no package management is given. Everything natively
supported by the node version described in the [.nvmrc](.nvmrc) is allowed to use.
Expand Down
Loading

0 comments on commit 59148f8

Please sign in to comment.