Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flex-algo

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-algo - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

lib/binaryTree.d.ts

@@ -18,3 +18,5 @@ export declare class BinaryNode {

rightSideView(): NodeValueType[];
_leftSideView(node: BinNode, values: NodeValueType[], depth: number): void;
leftSideView(): NodeValueType[];
}
export {};

@@ -115,4 +115,23 @@ "use strict";

};
BinaryTree.prototype._leftSideView = function (node, values, depth) {
if (node === null) {
return;
}
if (values.length <= depth) {
values.push(node === null || node === void 0 ? void 0 : node.value);
}
if ((node === null || node === void 0 ? void 0 : node.left) != null) {
this._leftSideView(node.left, values, depth + 1);
}
if ((node === null || node === void 0 ? void 0 : node.right) != null) {
this._leftSideView(node.right, values, depth + 1);
}
};
BinaryTree.prototype.leftSideView = function () {
var views = [];
this._leftSideView(this.root, views, 0);
return views;
};
return BinaryTree;
}());
exports.BinaryTree = BinaryTree;

2

package.json
{
"name": "flex-algo",
"version": "0.1.6",
"version": "0.1.7",
"description": "\"SDK for commonly used data structure and algorithms\"",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc