Skip to content

Commit

Permalink
Improved indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpgit committed May 5, 2024
1 parent f096238 commit e8ade55
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions modules/home-assignments/dirtree.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ one per line. Then free the allocated memory.
Each node can have constant number of children.

Possible input:

```C
char *paths[] = { "/beverages/coffee/espresso.java",
"/beverages/alcohol/beer.c",
"/food/healthy/vegetarian/salad.txt",
"/food/healthy/fruit/blueberries.hs",
"/food/unhealthy/cake.md" };
char *paths[] = {
"/beverages/coffee/espresso.java",
"/beverages/alcohol/beer.c",
"/food/healthy/vegetarian/salad.txt",
"/food/healthy/fruit/blueberries.hs",
"/food/unhealthy/cake.md" };
```
#solution dirtree.c
Expand All @@ -34,13 +36,13 @@ bonus tasks:
its tree depth. E.g:
```
$ ./a.out
/
foo/
a.c
b.c
f.txt
bar/
$ ./a.out
/
foo/
a.c
b.c
f.txt
bar/
```
- remove the limitation for the constant number of children
Expand Down

0 comments on commit e8ade55

Please sign in to comment.