You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
416 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.printBinary = void 0;
const printBinary = (tab = '', children) => {
const left = children[0], right = children[1];
let str = '';
if (left)
str += '\n' + tab + '← ' + left(tab + ' ');
if (right)
str += '\n' + tab + '→ ' + right(tab + ' ');
return str;
};
exports.printBinary = printBinary;