AfterAcademy Tech
In this blog, we will learn what is a domain and a workgroup. We will also see the application and the differences between the two.
03 Mar 2020
Given n non-negative integers representing an elevation map where the width of each bar is 1. Write a program to compute how much water it is able to trap after raining.
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. This is a very famous interview problem and previously asked in Microsoft and Amazon.
Given a binary tree, write a program to find the lowest common ancestor (LCA) of two given nodes in the tree. The question is asked previously in Amazon, Facebook, Adobe and requires an understanding of tree data structure.
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root.
There are two sorted arrays nums1 and nums2 of size n. Find the median of the two sorted arrays.
These are two very useful and commonly used algorithmic paradigms for optimization and we shall compare the two in this blog and see when to use which approach.
This is a famous interview problem asked in companies like Amazon, Microsoft. Here the basic idea is to think of the data structure which can easily solve this problem.
Given an integer, your task is to find the square root of the integer. For an integer x to be the square root of the given integer N, x*x must be equal to N. This is an interview problem asked in companies like Amazon, Microsoft and Facebook.
In this blog, we will learn what is localhost. We will also learn various applications of the localhost.