This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const max = (a, b) => (a > b) ? a : b; | |
| const height = (node) => node == null ? 0 : node.height; | |
| const calculateBalance = (node) => node == null ? 0 : height(node.left) - height(node.right); | |
| const minValNode = (node) => { | |
| let temp = node; | |
| while (temp.left != null) | |
| temp = temp.left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading.Tasks; | |
| using System.Timers; | |
| using GTANetworkAPI; | |
| namespace Testing | |
| { | |
| public class Class1 : Script | |
| { | |
| [Command("v")] |