closes #495
This commit is contained in:
parent
6f8bd3c0de
commit
30862423b0
4 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Count descendants
|
||||
|
||||
There's a tree structured as nested `ul/li`.
|
||||
|
||||
Write the code that for each `<li>` shows:
|
||||
|
||||
1. What's the text inside it (without the subtree)
|
||||
2. The number of nested `<li>` -- all descendants, including the deeply nested ones.
|
||||
|
||||
[demo src="solution"]
|
Loading…
Add table
Add a link
Reference in a new issue