Summary Files Commits Branches @commit @diff @stats
path: root / src / teaching
diff options
context:
space:
mode:
diff --git a/src/teaching/oop-2023/week1/good-software.du b/src/teaching/oop-2023/week1/good-software.du
index bb19eb0..237cec2 100644
--- a/src/teaching/oop-2023/week1/good-software.du
+++ b/src/teaching/oop-2023/week1/good-software.du
@@ -319,6 +319,7 @@ void generateLayer(char** layer, int rows, int cols,
Решения със слоеве правят същото. Лошо - {` doX()} при циклите:
```cpp
+'emplace
void generate(char*** board, int rows, int cols, int layers,
char* tiles, int* tileCounts, int tilesSize) {
...
@@ -328,6 +329,7 @@ void generate(char*** board, int rows, int cols, int layers,
} while(layer[x][y][layer] != ' ');
...
}
+'endemplace
Без абстракция отново ще пренапишем голяма част от {` generate} функцията, за да се побере на слайда съм оставил само "най-сложната" промяна - случайните стойности.
diff --git a/src/teaching/upp-2023/week12/index.du b/src/teaching/upp-2023/week12/index.du
index ed4dc89..c54114c 100644
--- a/src/teaching/upp-2023/week12/index.du
+++ b/src/teaching/upp-2023/week12/index.du
@@ -90,21 +90,25 @@ GitHub classroom: {url classroom.github.com/a/KEDSxDjl;https://classroom.github.
|:
```
+'emplace
5 11
- - # # - - - - - - -
- # - - # - - - - - -
-\# - - - - # # # # # #
+# - - - - # # # # # #
- # - - # - - - # - #
- - # # - - - - - - -
2 2
+'endemplace
|:
```
+'emplace
- - # # - - - - - - -
- # # # # - - - - - -
-\# # # # # # # # # # #
+# # # # # # # # # # #
- # # # # - - - # - #
- - # # - - - - - - -
+'endemplace
diff --git a/src/teaching/upp-2025/week13/index.du b/src/teaching/upp-2025/week13/index.du
index d8edf79..f73b1f9 100644
--- a/src/teaching/upp-2025/week13/index.du
+++ b/src/teaching/upp-2025/week13/index.du
@@ -504,7 +504,7 @@ He should not have built the fire under the pine tree.
Трябва да върнете (приближение на) екцентричната аномалия, като рекурсията ви трябва да се "вложи" максимум "дълбочина" на брой пъти.
За дъно на рекурсията, може да върнете стойността {` M}.
-Използвайте {` <cmath>} за синус функцията.
+Използвайте {` {nohtml <cmath>}} за синус функцията.
:table
:2