Skip to content

Commit afd9862

Browse files
committed
Add YT link to README & javadoc
1 parent d81e423 commit afd9862

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,4 @@ notes about interview preparation and useful links.
258258
| Число Фробениуса и задача Чикена МакНаггетса | [Youtube](https://youtu.be/itBWtCwWUG4) | [Code](src/main/java/by/andd3dfx/numeric/FrobeniusCoinProblem.java) |
259259
| Java interview Q & A collection | [Youtube](https://youtu.be/H5i9LJsm28s) | [Repo](https://github.com/andrei-punko/java-interview-faq-n-answers) |
260260
| Выдача купюр банкоматом #2 (Яндекс) | [Youtube](https://youtu.be/0-BL-NO9-B8) | [Code](src/main/java/by/andd3dfx/common/atm/AtmUsingLoop.java) [Code2](src/main/java/by/andd3dfx/common/atm/AtmUsingRecursion.java) |
261+
| Поиск эквивалентных вершин бинарного дерева с макс. размером поддеревьев | [Youtube](https://youtu.be/Ued_W2Xs7ng) | [Code](src/main/java/by/andd3dfx/tree/equivalent/EquivalentNodesOfTree.java) |

src/main/java/by/andd3dfx/tree/equivalent/EquivalentNodesOfTree.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Node right;
2323
* }
2424
* </pre>
25+
*
26+
* @see <a href="https://youtu.be/Ued_W2Xs7ng">Video solution</a>
2527
*/
2628
public class EquivalentNodesOfTree {
2729

@@ -30,9 +32,9 @@ public List<Node> findEquivalentNodes(Node root) {
3032
return null;
3133
}
3234

33-
// Fill `vocabulary` field of nodes
35+
// Fill `vocabulary` field of tree nodes
3436
fillNodeVocabulary(root);
35-
// Fill `subtreeSize` field of nodes
37+
// Fill `subtreeSize` field of tree nodes
3638
fillSubTreeSize(root);
3739

3840
// Build Set<Character> -> List<Node> map

0 commit comments

Comments
 (0)