diff --git a/AlmostDone/CompleteTheProject/task.md b/AlmostDone/CompleteTheProject/task.md index 5b950dc1..d7b44de5 100644 --- a/AlmostDone/CompleteTheProject/task.md +++ b/AlmostDone/CompleteTheProject/task.md @@ -5,7 +5,7 @@ This time, without a new theoretical part! Finish the game – implement the `photoshop` function, that combines all functions together. -
when
expression allows you to use several values in one branch and define a variable in place:
diff --git a/AlmostDone/NullSafetyPartTwo/task.md b/AlmostDone/NullSafetyPartTwo/task.md
index b2531d7f..20ac8aca 100644
--- a/AlmostDone/NullSafetyPartTwo/task.md
+++ b/AlmostDone/NullSafetyPartTwo/task.md
@@ -4,7 +4,7 @@ We need to provide the user to be able to transform their own pictures. Let's do
Implement `getPicture` function that asks the user to choose a pre-defined picture or to input a custom picture.
-@@ -28,7 +28,7 @@ In other words, you need to pad the shorter lines with the `separator` to the le To get the width of the picture, you cak use the predefined function `getPictureWidth`, that returns the maximum of width from all lines from the picture. -
main
by passing one of the pre-defined pictures:
@@ -80,14 +80,14 @@ fun main() {
```
borderSymbol
and the separator
on both sides of the image.
@@ -27,7 +27,7 @@ In other words, you need to pad the shorter lines with the `separator` to the le To get the width of the picture, you cak use the predefined function `getPictureWidth`, that returns the maximum of width from all lines from the picture. -
main
by passing one of the pre-defined pictures:
@@ -78,14 +78,14 @@ fun main() {
@@ -33,7 +33,7 @@ An example of this filter: function instead of implementation as a temporary solution. We will implement this function during solving next tasks. -
diff --git a/AlmostDone/choosePictureFunction/task.md b/AlmostDone/choosePictureFunction/task.md index 3f7e80f0..3e834e61 100644 --- a/AlmostDone/choosePictureFunction/task.md +++ b/AlmostDone/choosePictureFunction/task.md @@ -5,7 +5,7 @@ of the pre-defined pictures they want to change. Implement `choosePicture` picture that chooses one pre-defined picture by its name. -
n
last symbols from a String
, you can use the dropLast
function, e.g.:
```kotlin
@@ -81,7 +81,7 @@ To drop n
last symbols from a String
, you can use the
If you need to drop n
symbols from the beginning of a String
, you can use the drop
function.
repeat
function, e.g.:
```kotlin
@@ -34,7 +34,7 @@ To generate a string that consists of some repeated symbols, you can use the
-main
by passing one of the pre-defined patterns:
diff --git a/MastermindAdvanced/CompleteTheProject/task.md b/MastermindAdvanced/CompleteTheProject/task.md
index 5fa645c7..085852c1 100644
--- a/MastermindAdvanced/CompleteTheProject/task.md
+++ b/MastermindAdvanced/CompleteTheProject/task.md
@@ -7,7 +7,7 @@ in the previous step.
Since the `safeUserInput` function requires an `alphabet: String` argument, don't forget to update the signature of
the `playGame` function.
-filterIndexed
function.
length
:
`"ABCDDD".length` will return `6`, since the string contains `6` letters.
diff --git a/WarmUp/CollectionsPartTwo/task.md b/WarmUp/CollectionsPartTwo/task.md
index 0cf48b88..3efae2c7 100644
--- a/WarmUp/CollectionsPartTwo/task.md
+++ b/WarmUp/CollectionsPartTwo/task.md
@@ -6,7 +6,7 @@ a new function `countAllMatches` to calculate all matches
Add and implement a new function _countAllMatches_ which has two string arguments (_secret_ and _guess_)
and returns the number of matched letters between them that don't depend on the position.
-filter
function
to filter elements from one collection that are in another:
@@ -28,7 +28,7 @@ println(list1.filter{ it in list2 }) // [3, 4]
```
minOf
function
to find a minimum values from several ones:
@@ -44,7 +44,7 @@ If you have any difficulties, **hints will help you solve this task**.
### Hints
-