title
              unisala image

Signature of Brain Dump

Author avatar
Brain DumpMar 18, 2025
Same Binary Tree | LeetCode

Given the roots of two binary trees p and q, return true if the trees are equivalent, otherwise return false.Two binary trees

1 min read·General
Article cover
Author avatar
Brain DumpMar 18, 2025
Subtree of Another Tree

This problem check if a certain part of a tree is same tree as a given subtree.So before we solve this problem, we need to know how to check if two trees are sa

1 min read·General
Article cover
Author avatar
Brain DumpMar 18, 2025
Binary Search Tree | Subset of Binary Tree

Binary search tree is great for searching or comparing things?We know using a hash-table we have O(1) for look up, then why study Binary Search Tree?Why is this

3 min read·General
Author avatar
Brain DumpMar 18, 2025
Balanced Binary Tree | Neetcode

Given a binary tree, return true if it is height-balanced and false otherwise.A height-balanced binary tree is defined a

2 min read·General
Article cover
Author avatar
Brain DumpMar 18, 2025
MaxDepth VS Diameter of Binary Search Tree

Maximum Depth (Height):Performance Indicator Tells you how efficient your BST operations will beOperations like search, insert, delete take O(h) time, where h i

2 min read·General
Article cover
Author avatar
Brain DumpFeb 28, 2025
When the game is over, the King and the pawn go in the same box.

When the game is over, the King and the pawn go in the same box.

1 min read·General
Author avatar
Brain DumpFeb 23, 2025
Reducing CPU cycles | CSCE-533 | Computer Architecture

Let me try a different approach with a simpler example.Imagine counting down from 5 to 0:for (i=5; i>=0; i=i-1) { // do something } The loop needs to:Sta

5 min read·General
Article cover
Author avatar
Brain DumpFeb 7, 2025
A Large Scale analysis of Borrow pattern.

What is Rust?Rust is a system programming language that focuses on speed, memory safety, and parallelism. It was developed by Mozilla and has been gaining popul

9 min read·General
Article cover
Author avatar
Brain DumpFeb 6, 2025
A Deep Dive into Graph Theory and Applications | Types of Graphs

Imagine a social network like Facebook, every user is connected to their friends, who are connected to their friends, and so on. Or think about Google Maps navi

8 min read·General
Article cover
Author avatar
Brain DumpFeb 3, 2025
Last Stone Weight | Heap | Priority Queue

You are given an array of integers stones where stones[i] represents the weight of the ith stone.We want to run a simulation on th

3 min read·General
Article cover
Author avatar
Brain DumpJan 28, 2025
Combination Sum | Backtracking Algorithm

You are given an array of distinct integers nums and a target integer target. Your task is to return a list of all unique combinat

2 min read·General
Article cover
Author avatar
Brain DumpJan 28, 2025
Subsets | BackTracking Explained

Subsets: Given an array nums of unique integers, return all possible subsets of nums.The solution set must not contain duplic

6 min read·General
Article cover
Author avatar
Brain DumpJan 26, 2025
Backtracking | Algorithmic Apporoach

Backtracking solves a similar problems as what dynamic programming solves. The only thing about backtracking is that we care about returning all of the solution

3 min read·General
Author avatar
Brain DumpJan 25, 2025
How to validate a Binary Search Tree | Importance and algorithm | Leetcode

Why Do we Care about Binary Search Tree?It's a fundamental building block for databases and data structures used in Big Tech, Common interview question at tech

3 min read·General
Article cover
Author avatar
Brain DumpJan 24, 2025
Lowest Common Ancestor | Binary Search Tree

First before we looking into the problem, let's first understand the application why is this helpful?Real world ExampleCourse Prerequisites: Finding common prer

4 min read·General
Article cover
Author avatar
Brain DumpJan 17, 2025
Same Binary Tree | LeetCode

Given the roots of two binary trees p and q, return true if the trees are equivalent, otherwise return false.Two binary trees

3 min read·General
Article cover
Author avatar
Brain DumpJan 16, 2025
Encode and Decode Strings | String Manipulation

decode(str) { const result = [] let i = 0 while (i < str.length) { const delimeter = str.indexOf('#', i) const length = str.substring(i, delimeter) const

1 min read·General
Author avatar
Brain DumpJan 14, 2025
Implement the Least Recently Used | LRU Cache | Leetcode | Using Map

Implement the Least Recently Used (LRU) cache class LRUCache. The class should support the following operationsLRUCache(int capacity) Initia

4 min read·General
Author avatar
Brain DumpJan 2, 2025
Merge Two Sorted Linked Lists | Leetcode | Blind 175

You are given the heads of two sorted linked lists list1 and list2.Merge the two lists into one sorted linked list and return the head

2 min read·General
Article cover
Author avatar
Brain DumpJan 1, 2025
Longest Repeating Character Replacement | Sliding Window | Leetcode

You are given a string s and an integer k. You can choose any character of the string and change it to any other uppercase English character. You

2 min read·General
Author avatar
Brain DumpJan 1, 2025
Understanding GPT-3: From Embeddings to Predictions | Transformer

Understanding how GPT-3 works gives us a glimpse into the cutting-edge technology shaping how we interact with the world.From powering chatbots and virtual assi

6 min read·General
Article cover
Author avatar
Brain DumpDec 17, 2024
Longest Consecutive Sequence | Array & Hashing | Neetcode 150

Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.You must write an algorithm that runs in&nbsp

4 min read·General
Article cover
Author avatar
Brain DumpDec 12, 2024
Church Numerals

Church numerals are a way of representing natural numbers using lambda calculus. a foundational framework in mathematical logic and computer science. In essence

3 min read·General
Article cover
Author avatar
Brain DumpDec 12, 2024
Reduction Strategies For Lambda Calculus

Redex is a deducible expression. It is a lambda abstraction applied to an argumentReduction replaces a redex with the result of applying the function.Beta Reduc

3 min read·General
Article cover
Author avatar
Brain DumpDec 12, 2024
Lambda Calculus | Alpha renaming | Exercise 1

A formal system used to study functions, variables & how they interact through application & abstraction. It's a foundational mathematical framework tha

8 min read·General
Article cover