This commit is contained in:
Yesenya 2023-11-09 14:05:56 +03:00
parent 81cc1496ae
commit 580bac2e3a

View File

@ -2,8 +2,8 @@
There are 3 tasks for the intership in this repo There are 3 tasks for the intership in this repo
## [Tasks 1](/task1) ## [Tasks 1](task1)
Here you can find the [task1.py](/task1/task1.py) Here you can find the [task1.py](task1/task1.py)
The essence of the task was: The essence of the task was:
@ -15,21 +15,21 @@ Ex 1: n = 4, m = 3 (1234 --> _1_23, _3_41)
Output: 13 Output: 13
## [Tasks 3](/task3) ## [Tasks 3](task3)
Here you can find the: Here you can find the:
- [task3.py](/task3/task3.py) - The pyfile with task; - [task3.py](task3/task3.py) - The pyfile with task;
- [tests.json](/task3/tests.json) - contains a structure for building a report based on past tests. The jsonfile with the following keys: 'tests, 'id', 'title', 'value' ('values'); - [tests.json](task3/tests.json) - contains a structure for building a report based on past tests. The jsonfile with the following keys: 'tests, 'id', 'title', 'value' ('values');
- [values.json](/task3/values.json) - contains test results with unique id. The jsonfile with the following keys: 'id', 'value' - [values.json](task3/values.json) - contains test results with unique id. The jsonfile with the following keys: 'id', 'value'
- [report.json](/task3/report.json) - The jsonfile with the join result of 2 previous jsonfiles, which are joined by 'id', and the values are substituted in place of the 'value' keys - [report.json](task3/report.json) - The jsonfile with the join result of 2 previous jsonfiles, which are joined by 'id', and the values are substituted in place of the 'value' keys
The essence of the task was: The essence of the task was:
> Two files are sent to the input as arguments of the program: tests.json and values.json. Write a program that generates a report file.json with filled in value fields for the tests structure.json based on values.json. > Two files are sent to the input as arguments of the program: tests.json and values.json. Write a program that generates a report file.json with filled in value fields for the tests structure.json based on values.json.
## [Tasks 4](/task4) ## [Tasks 4](task4)
Here you can find the: Here you can find the:
- [task4.py](/task4/task4.py) - The pyfile with task; - [task4.py](task4/task4.py) - The pyfile with task;
- [file.txt](/task4/file.txt) - contains the array elements fot the tasks; - [file.txt](task4/file.txt) - contains the array elements fot the tasks;
The essence of the task was: The essence of the task was:
> An array of integers nums is given. Write a program that outputs the minimum number of moves required to reduce all elements to one number. In one move, you can decrease or increase the number of the array by 1. > An array of integers nums is given. Write a program that outputs the minimum number of moves required to reduce all elements to one number. In one move, you can decrease or increase the number of the array by 1.