-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
marrry
committed
Jan 3, 2021
1 parent
9461790
commit 2935cbd
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!-- Describe task in general --> | ||
|
||
<p> | ||
Przesuń pierwszy element z danej {% if interpreter.slug == "js-node" %}tablicy (array){% else %}listy{% endif %} na jej koniec. Pusta {% if interpreter.slug == "js-node" %}tablica{% else %}lista{% endif %} lub {% if interpreter.slug == "js-node" %}tablica{% else %}lista{% endif %} zawierająca tylko jeden element powinna pozostać niezmieniona. | ||
</p> | ||
|
||
<p style="text-align: center;"> | ||
<img title="example" src="{{MEDIA}}example.png" alt="example" style="max-height: 83px"/> | ||
</p> | ||
<!-- Explain input and output values --> | ||
<p> | ||
<strong>Wejście: </strong> {% if interpreter.slug == "js-node" %}Array{% else %}List{% endif %}. | ||
</p> | ||
|
||
<p> | ||
<strong>Wyjście: </strong> {% if interpreter.slug == "js-node" %}Array{% else %}Iterable{% endif %}. | ||
</p> | ||
|
||
|
||
<!-- Give some usage examples --> | ||
<div class="for_info_only"> | ||
<p> | ||
<strong>Przykład:</strong> | ||
</p> | ||
|
||
{% if interpreter.slug == "js-node" %} | ||
<pre class="brush: javascript">replaceFirst([1, 2, 3, 4]) == [2, 3, 4, 1] | ||
replaceFirst([1]) == [1] | ||
replaceFirst([]) == [] | ||
</pre> | ||
{% else %} | ||
<pre class="brush: python">replace_first([1, 2, 3, 4]) == [2, 3, 4, 1] | ||
replace_first([1]) == [1] | ||
</pre> | ||
{% endif %} | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Przesuń pierwszy element na koniec. |