---
title: "Abhi (@abhiculous) | Hashnode"
description: "stay sleeppyy, stayy foolish. Read the latest articles by Abhi on Hashnode."
url: "https://hashnode.com/@abhiculous"
---

@abhiculous

# Abhi

@abhiculous · Joined January 2022

stay sleeppyy, stayy foolish

### [Count Good Nodes in Binary Tree - Kotlin (Medium)](https://abhiculous.hashnode.dev/count-good-nodes-in-binary-tree-kotlin-medium?utm_source=hashnode&utm_medium=feed)

Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Return the number of good nodes in the binary tree. Example 1: Input: root = \[3,1,4,3,null,1,5\] Output: 4 Exp...

1 min read · [abhiculous.hashnode.dev](https://abhiculous.hashnode.dev/count-good-nodes-in-binary-tree-kotlin-medium?utm_source=hashnode&utm_medium=feed)

[Feb 19, 2022](https://hashnode.com/posts/count-good-nodes-in-binary-tree-kotlin-medium/6210bf7830c8050670ed2a5a)

### [Balanced Binary Tree - Kotlin](https://abhiculous.hashnode.dev/balanced-binary-tree-kotlin?utm_source=hashnode&utm_medium=feed)

a binary tree in which the left and right subtrees of every node differ in height by no more than 1.

1 min read · [abhiculous.hashnode.dev](https://abhiculous.hashnode.dev/balanced-binary-tree-kotlin?utm_source=hashnode&utm_medium=feed)

[Feb 19, 2022](https://hashnode.com/posts/balanced-binary-tree-kotlin/6210bd3bc6ed3906e81c1f38)

### [Trees Implementation](https://abhiculous.hashnode.dev/trees-implementation?utm_source=hashnode&utm_medium=feed)

class Tree { data class Node(val value: Int) { var leftNode: Node? = null var rightNode: Node? = null } var rootNode: Node? = null fun insert(value: Int) { val newNode = Node(value) if (rootNode == n...

3 min read · [abhiculous.hashnode.dev](https://abhiculous.hashnode.dev/trees-implementation?utm_source=hashnode&utm_medium=feed)

[Jan 22, 2022](https://hashnode.com/posts/trees-implementation/61ec4704a12088017fbea31b)

### [Queue Implementation In Kotlin -Data Structure And Algorithms](https://abhiculous.hashnode.dev/queue-implementation-in-kotlin-data-structure-and-algorithms?utm_source=hashnode&utm_medium=feed)

Queue are data structure that follows the FIRST IN, FIRST OUT (FIFO), ie the first element that is added to the queue is the first one to be removed. Elements are always added to the back and removed from the front. Think of it as a line of people, ...

2 min read · [abhiculous.hashnode.dev](https://abhiculous.hashnode.dev/queue-implementation-in-kotlin-data-structure-and-algorithms?utm_source=hashnode&utm_medium=feed)

[Jan 16, 2022](https://hashnode.com/posts/queue-implementation-in-kotlin-data-structure-and-algorithms/61e401578a425719c173436d)

### [Stacks Implementation In Kotlin -Data Structure And Algorithms](https://abhiculous.hashnode.dev/stacks-implementation-in-kotlin-data-structure-and-algorithms?utm_source=hashnode&utm_medium=feed)

Stack is an abstract data type with a bounded(predefined) capacity. It is a simple data structure that allows adding and removing elements in a particular order. Every time an element is added, it goes on the top of the stack and the only element tha...

2 min read · [abhiculous.hashnode.dev](https://abhiculous.hashnode.dev/stacks-implementation-in-kotlin-data-structure-and-algorithms?utm_source=hashnode&utm_medium=feed)

[Jan 16, 2022](https://hashnode.com/posts/stacks-implementation-in-kotlin-data-structure-and-algorithms/61e3d4df9f8415199ccad242)
