MCPcopy
hub / github.com/kunal-kushwaha/DSA-Bootcamp-Java / serialize

Method serialize

lectures/20-trees/code/Questions/SD.java:4–8  ·  view source on GitHub ↗
(Node node)

Source from the content-addressed store, hash-verified

2
3class SD {
4 public List<String> serialize(Node node) {
5 List<String> list = new ArrayList<>();
6 helper(node, list);
7 return list;
8 }
9 void helper(Node node, List<String> list) {
10 if (node == null) {
11 list.add("null");

Callers

nothing calls this directly

Calls 1

helperMethod · 0.95

Tested by

no test coverage detected