Loading...

Във форума е въведено ограничение, което позволява на потребителите единствено да разглеждат публикуваните въпроси.

Milena_B avatar Milena_B 8 Точки

10. SoftUni Course Planning

Здравейте, колеги! Някой може ли да ми помогне с тази задачка, че вече се измъчих да я гледам? Judge ми дава 88/100. 

Това е кодът- https://pastebin.com/URddYmG2

Това е условието:

Help planning the next Programming Fundamentals course by keeping track of the lessons that will be included in the course, as well as all the exercises for the lessons. On the first input line, you will receive the initial schedule of lessons and exercises that are going to be part of the next course, separated by a comma and a space ", ".  Before the course starts, there are some changes to be made.  Until you receive the "course start" command, you will be given some commands to modify the course schedule

The possible commands are:

  • Add:{lessonTitle}add the lesson to the end of the schedule, if it does not exist.
  • Insert:{lessonTitle}:{index}insert the lesson to the given index, if it does not exist.
  • Remove:{lessonTitle}  – remove the lesson, if it exists.
  • Swap:{lessonTitle}:{lessonTitle}swap the position of the two lessons, if they exist.

Exercise:{lessonTitle} – add Exercise in the schedule right after the lesson index, if the lesson exists and there is no exercise already, in the following format "{lessonTitle}-Exercise". If the lesson doesn`t exist, add the lesson at the end of the course schedule, followed by the Exercise.

Note: Each time you Swap or Remove a lesson, you should do the same with the Exercises, if there are any following the lessons.

 

Тагове:
0
Fundamentals Module
Axiomatik avatar Axiomatik 2422 Точки

These prior discussions should cover all edge cases for this exercise.

;-)

https://softuni.bg/forum/34871/10-softuni-course-planning-ot-exercise-lists

https://softuni.bg/forum/38034/softuni-course-planning

https://softuni.bg/forum/41977/10-softuni-course-planning-lists-exercise-csharp-fundamentals

 

1
Milena_B avatar Milena_B 8 Точки

Thank you! :)

2
Можем ли да използваме бисквитки?
Ние използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Можете да се съгласите с всички или част от тях.
Назад
Функционални
Използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Използваме „сесийни“ бисквитки, за да Ви идентифицираме временно. Те се пазят само по време на активната употреба на услугите ни. След излизане от приложението, затваряне на браузъра или мобилното устройство, данните се трият. Използваме бисквитки, за да предоставим опцията „Запомни Ме“, която Ви позволява да използвате нашите услуги без да предоставяте потребителско име и парола. Допълнително е възможно да използваме бисквитки за да съхраняваме различни малки настройки, като избор на езика, позиции на менюта и персонализирано съдържание. Използваме бисквитки и за измерване на маркетинговите ни усилия.
Рекламни
Използваме бисквитки, за да измерваме маркетинг ефективността ни, броене на посещения, както и за проследяването дали дадено електронно писмо е било отворено.