feat: finish evaluate arg allgorithm
This commit is contained in:
@ -1,15 +1,16 @@
|
||||
<script lang="ts">
|
||||
import { decode, encode } from "$lib/helpers/flat_tree";
|
||||
|
||||
const input = [5, [6, 1], [7, 2, [5, 1]]];
|
||||
// const input = [5, [6, 1], [7, 2, [5, 1]]];
|
||||
// const input = [5, [], [6, []], []];
|
||||
// const input = [52];
|
||||
const input = [0, 0, [0, 2, 0, 128, 0, 128], 0, 128];
|
||||
|
||||
console.log("INPUT");
|
||||
console.log(input);
|
||||
|
||||
let encoded = encode(input);
|
||||
encoded = [0, 3, 5, ...encoded.slice(2).slice(0, -4), 5, 5, 1, 1];
|
||||
// encoded = [];
|
||||
console.log("ENCODED");
|
||||
console.log(encoded);
|
||||
|
||||
|
Reference in New Issue
Block a user