The Binary Realm
blogging website for coders and tech enthusiasts
https://thebinaryrealm.com/introduction-to-self-balancing-trees/
Balanced Trees & Introduction to Self Balancing Trees | Trees | Data Structures Simplified - TheBinaryRealm A balanced binary tree or a height-balanced tree is a tree in which the height of the left and right subtree at any node does not differ by more than one. Not just the root node, at any node. Mathematically we define using a balanced factor.
http://thebinaryrealm.com/trie-data-structure/
Trie - Data Structure | Strings | Everything you need to know - TheBinaryRealm Trie, also known as prefix tree or digital tree, is an advanced tree data structure that makes data retrieval operations more efficient.
Check out the guide for adding SSH based authentication for multiple GitHub accounts on the same system.
https://thebinaryrealm.com/adding-ssh-keys-for-multiple-github-accounts/
Adding SSH Keys for Multiple GitHub Accounts on the Same System | Complete Guide - TheBinaryRealm If you have different personal and work GitHub accounts and are trying to use SSH-based authentication for both of them chances are you will face some errors. In this article, I will show you how to do it.
Follow The Binary Realm for more
“The dark net is a world of power and freedom: of expression, of creativity, of information, of ideas. Power and freedom endow our creative and our destructive faculties. The dark net magnifies both, making it easier to explore every desire, to act on every dark impulse, to indulge every neurosis.”
― Jamie Bartlett
Check out the full blog here:
https://thebinaryrealm.com/hidden-web
HIDDEN WEB | EVERYTHING YOU NEED TO KNOW | DARK WEB | TOR - TheBinaryRealm We live in an age when we are surrounded by technology and ads and tons of internet content. But even in this age there exist a part of the internet, a part of the society rather, that remains hidden from us called the hidden web. Hidden web i
Check out the blog here
https://thebinaryrealm.com/server
Follow The Binary Realm for more
Important concept of linked list:
https://thebinaryrealm.com/floyds-tortoise-and-hare-algorithm/
Finding a Cycle in a Linked List | Floyd's Tortoise and Hare Algorithm - TheBinaryRealm The Floyd's tortoise and hare algorithm is used to detect a cycle in a linked list. LL cycle can be found using a hash set but tortoise and hare algorithm is better in terms of space complexity.
Ever wondered what happened in between your clicking on a website link and the page loading. You have an internet connection. But what is “internet connection” anyway? What is mobile data? What is WiFi, LAN,DNS,IP,ISP and lots of other jargons....
Check out the following blog:
https://thebinaryrealm.com/internet-how-it-works/
Internet - How the Internet works | Ultimate guide | Everything you need - TheBinaryRealm You have an internet connection. But what is an “internet connection” anyway? What is mobile data? What are WiFi, LAN, DNS, IP address, ISP, and lots of other jargon?
While surfing the internet you, at some point you must have encountered an irritating captcha and wondered why do websites even use them?
Turns out it plays an important role.
Check out the short article below for more:
https://thebinaryrealm.com/captcha
Check out the blog:
What is a captcha? | reCAPTCHA | Why do websites ask [I am not a robot] - TheBinaryRealm What is a captcha? Why do websites use them? What do websites ask me if I am a robot?CAPTCHA is a type of challenge-response test used....
Maximum frequency stack | February leetcoding challenge 2021 | Day 28
Check out the solution here:
https://thebinaryrealm.com/maximum-frequency-stack/
Maximum Frequency Stack | February Leetcoding Challenge 2021 | Day 28 - TheBinaryRealm implement FreqStack, a class which simulates the operation of a stack-like data structure.FreqStack has two functions:push(int x), which pushes an integer x onto the stack.pop(), which removes and returns the most frequent element in the stack.If there is a tie for most frequent element, the element...
Divide two integers | February leetcoding challenge 2021| Day 27
Check out the solution here:
https://thebinaryrealm.com/divide-two-integers/
Divide Two Integers | February Leetcoding challenge 2021 | Day 27 - TheBinaryRealm Given two integers dividend and divisor, divide two integers without using multiplication, division, and mod operator.Return the quotient after dividing dividend by divisor.The integer division should truncate toward zero, which means losing its fractional part. For example, truncate(8.345) = 8 and....
Validate stack sequences | February leetcoding challenge 2021 | Day 26
Check out the solution here:
https://thebinaryrealm.com/validate-stack-sequences/
Validate Stack Sequences | February Leetcoding challenge 2021 | Day 26 - TheBinaryRealm Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop operations on an initially empty stack.
Shortest unsorted continuous subarray | February leetcoding challenge 2021 | Day 25
https://thebinaryrealm.com/shortest-unsorted-continuous-subarray/
Shortest Unsorted Continuous Subarray | February Leetcoding Challenge 2021 | Day 25 - TheBinaryRealm Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order.Return the shortest such subarray and output its length.
Score of parentheses | February leetcoding challenge 2021 | Day 24
Check out the solution here:
https://thebinaryrealm.com/score-of-parentheses
Score of Parentheses | February Leetcoding Challenge 2021 | Day 24 - TheBinaryRealm Given a balanced parentheses string S, compute the score of the string based on the following rule:() has score 1AB has score A + B, where A and B are balanced parentheses strings.(A) has score 2 * A, where A is a balanced parentheses string.
Search a 2d matrix ii | February leetcoding challenge 2021 | Day 23
Check out the solution here:
https://thebinaryrealm.com/search-a-2d-matrix-ii
Search a 2D Matrix II | February Leetcoding challenge 2021 | Day 23 - TheBinaryRealm Write an efficient algorithm that searches for a target value in an m x n integer matrix. The matrix has the following properties:Integers in each row are sorted in ascending from left to right.Integers in each column are sorted in ascending from top to bottom.
Longest word in dictionary through deleting | February leetcoding challenge 2021 | Day 22
Check out the solution here:
https://thebinaryrealm.com/longest-word-in-dictionary-through-deleting/
Longest Word in Dictionary through Deleting | February Leetcoding Challenge 2021 | Day 22 - TheBinaryRealm Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. If there are more than one possible results, return the longest word with the smallest lexicographical order. If there is no possible result, return t...
Broken calculator | February leetcoding challenge 2021 | Day 21
Check out the solution here
https://thebinaryrealm.com/broken-calculator
Broken Calculator | February Leetcoding Challenge 2021 | Day 21 - TheBinaryRealm On a broken calculator that has a number showing on its display, we can perform two operations:Double: Multiply the number on the display by 2, or;Decrement: Subtract 1 from the number on the display.Initially, the calculator is displaying the number X.Return the minimum number of operations needed....
Roman to integer | February leetcoding challenge 2021 | Day 20
Check out the solution here
https://thebinaryrealm.com/roman-to-integer/
Follow The Binary Realm for more
Roman To Integer | February LeetCoding Challenge 2021 | Day20 - TheBinaryRealm Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Given a roman numeral, convert it to an integer.
Minimum remove to make valid parentheses | February leetcoding challenge 2021 | day 19 https://thebinaryrealm.com/minimum-remove-to-make-valid-parentheses/
Minimum Remove to Make Valid Parentheses | February Leetcoding challenge 2021 | Day 19 - TheBinaryRealm Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any positions ) so that the resulting parentheses string is valid and return any valid string.
Arithmetic slices | February leetcoding challenge 2021| Day 18
Check out the solution here
https://thebinaryrealm.com/arithmetic-slices/
Arithmetic Slices | February Leetcoding Challenge 2021 | Day 18 - TheBinaryRealm A zero-indexed array A consisting of N numbers is given. A slice of that array is any pair of integers (P, Q) such that 0
Container with most water | February leetcoding challenge 2021 | day 17
Check out the solution here
https://thebinaryrealm.com/container-with-most-water/
Container with most water | February LeetCoding Challenge 2021 | Day 17 - TheBinaryRealm Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of the line i is at (i, ai) and (i, 0). Find two lines, which, together with the x-axis forms a container, such that the container contains the....
Letter case permutation | February leetcoding challenge 2021 | Day 16
Check out the solution here
https://thebinaryrealm.com/letter-case-permutation/
Letter Case Permutation | February Leetcoding challenge 2021 | Day 16 - TheBinaryRealm Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string.
The K weakest rows in a matrix | February challenge 2021 | Day 15
Check out the solution here:
https://thebinaryrealm.com/the-k-weakest-rows-in-a-matrix
The K Weakest Rows in a Matrix | February Leetcoding challenge 2021 | Day 15 - TheBinaryRealm Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k weakest rows in the matrix ordered from the weakest to the strongest.
Is graph bipartite? | February challenge 2021 | Day 14
Check out the solution here:
https://thebinaryrealm.com/is-graph-bipartite
Is Graph Bipartite? | February Leetcoding Challenge 2021 | Day 14 - TheBinaryRealm Bipartite graph | There is an undirected graph with n nodes, where each node is numbered between 0 and n - 1. You are given a 2D array graph, where graph[u] is an array of nodes that node u is adjacent to. More formally, for each v in graph[u], there is an undirected edge between node u and node v.
shortest path in binary matrix | February challenge 2021 | Day 13
Check out the solution here:
https://thebinaryrealm.com/shortest-path-in-binary-matrix
Shortest Path in Binary Matrix | February Leetcoding Challenge 2021 | Day 13 - TheBinaryRealm In an N by N square grid, each cell is either empty (0) or blocked (1).A clear path from top-left to bottom-right has length k if and only if it is composed of cells C_1, C_2, ..., C_k such that:
Valid Anagram | February Leetcoding challenge 2021 | Day 11
Check out the solution here
https://thebinaryrealm.com/valid-anagram
Valid Anagram | February Leetcoding Challenge 2021 | Day 11 - TheBinaryRealm Given two strings s and t , write a function to determine if t is an anagram of s.
Copy list with Random pointer | February challenge | Day 10
Check out the solution here:
https://thebinaryrealm.com/copy-list-with-random-pointer
Copy List with Random Pointer | February Leetcoding challenge 2021 | Day 10 - TheBinaryRealm A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or null.Construct a deep copy of the list. The deep copy should consist of exactly n brand new nodes, where each new node has its value set to the value of its cor...
Convert BST to Greater Tree | February challenge 2021 | Day 9
Check out the solution here :
https://thebinaryrealm.com/convert-bst-to-greater-tree
-------------
Convert BST to Greater Tree | February Leetcoding Challenge 2021 | Day 9 - TheBinaryRealm Given the root of a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST.
Peeking Iterator | February Challenge 2021 | Day 8
check out the solution here :
https://thebinaryrealm.com/peeking-iterator/
--------------------------------------------
Peeking Iterator | February LeetCoding Challenge 2021 | Day 8 - TheBinaryRealm Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it essentially peek() at the element that will be returned by the next call to next().
February challenge | 2021 | Day 5
Check out the solution here :
https://thebinaryrealm.com/simplify-path-unix-path-leetcode/
Simplify path | February LeetCode Challenge 2021 | Day 5 - TheBinaryRealm Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, convert it to the simplified canonical path.
February challenge | 2021 | Day 6
Check out the solution here :
https://thebinaryrealm.com/binary-tree-right-side-view/
Binary Tree Right Side View | February Leetcoding Challenge 2021| Day 6 - TheBinaryRealm Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
February challenge 2021 | Day 7
check out the solution here :
https://thebinaryrealm.com/shortest-distance-to-a-character/
Shortest Distance to a Character | February challenge 2021 | Day 7 - TheBinaryRealm Given a string s and a character c that occurs in s, return an array of integers answer where answer.length == s.length and answer[i] is the shortest distance from s[i] to the character c in s.
Leetcoding challenge Day 6
Read the blog : thebinaryrealm.com/binary-tree-right-side-view
Follow for more
➖➖➖➖➖➖➖➖➖➖➖➖➖
Connecting SQL with python complete guide Ubuntu users
Check out the complete blog here with some minor errors and it's fixes :
https://thebinaryrealm.com/sql-with-python-complete-guide/
Follow the The Binary Realm for more
➖➖➖➖➖➖➖➖➖➖➖➖
Read full article here : “Genetic Algorithm-Everything You Need To Know” by Manas Sinha https://medium.com//genetic-algorithm-everything-you-need-to-know-60df46ccb911
Follow for more
Visit thebinaryrealm.com
➖➖➖➖➖➖➖➖➖➖➖
keyboard design using pure
Follow for more
Visit codepen.io/thebinaryrealm for code
➖➖➖➖➖➖➖➖➖➖➖➖➖
The binary realm is on Fiverr now..reach out to us for programming and web page related works at a low price... Hurry!!!!
Visit : https://www.fiverr.com/share/mYeRdz
➖➖➖➖➖➖➖➖➖➖➖➖➖
social media icons with and
Visit : codepen.io/thebinaryrealm for full code
Follow for more