-
Gen-ai Fundamentals: Neural Networks
Hello friends, I am starting a series on Gen-AI fundamentals. The goal is to present complex concepts into simple and easy to understand way. Today we shall cover basics of neural networks along with their key types such as Feedforward, CNN and RNN. Before we plunge into details, let’s first understand what is the neural…
-
Rotate array [LC150]
Hello friends, Today we’re going to discuss and solve another Leetcode DSA problem about rotating array. link- https://leetcode.com/problems/rotate-array/description/ Given an integer array nums, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3, Output: [5,6,7,1,2,3,4]Explanation:rotate 1 steps to the right: [7,1,2,3,4,5,6]rotate 2 steps…
-
QPS and storage calculation of a twitter
Hello friends, Today, let’s undersand how to calculate QPS (Query Per Second) and Storage calculation of a twitter app (now a days called x). Let’s get started. QPS (Query Per Second) Calculation: Storage capacity planning (1 year): For easy calculation, some of the numbers are taken conservately however the goal was to explain the concept…
-
Latency, bandwidth and throughput are not same
Hello friends, Today we shall discuss similar looking terms in networking such as Latency, bandwidth and throughput. Sometimes they are used interchangeably however in reality, they are not same. Let’s go through them one by one and try to get clarity. Latency– Delay or time it takes for a single data packet to travel from…
-
Remove duplicates from-sorted array-2 [LC150]
Hello friends, Today we’re going to discuss another Leetcode DSA problem about removing duplicates from-sorted array. link- https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/description/ Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place such that each unique element appears at most twice. The relative order of the elements should be kept the same. To change the length of the array in some languages, you need to…
-
Remove duplicates from-sorted array [LC150]
Hello friends, Today we’re going to discuss another Leetcode DSA problem about removing duplicates from-sorted array. link- https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same. Then return the number of…
-
Remove array element in-place [LC150]
Hello friends, Today we’re going to discuss another Leetcode DSA problem about removing array element in-place. link- https://leetcode.com/problems/remove-element/description Given an integer array nums and an integer val, remove all instances of val from nums in place. The order of elements can be changed. Return the count of elements in nums that are not equal to…
-
Merge Sorted Array [LC150]
Hello friends, Today we are going to solve another leetcode problem about merging sorred array. Link- https://leetcode.com/problems/merge-sorted-array/description/ You have two integer arrays, nums1 and nums2, which are sorted from smallest to largest. You also have two numbers, m and n, which show how many elements are in nums1 and nums2 respectively. Your goal is to…
-
Network Protocols Every Developers Should Know
Hello Friends- Hope you’re doing well. Today we shall go over some of the super basics of networking that developers should know. This can be helpful when deciding load balancers and application gateways during system design. TCP/IP -> Transmission Control Protocol/ Internet Protocol supports communication between different network devices on the internet. The TCP model…
-
Dutch National Flag algorithm
Hello folks, Hope you’re doing well. Today we shall discuss one of the important computer since algo called Dutch national flag. This is invented by a famous computer scientist Edsger Dijkstra. The Dutch/Netherlands flag consists of three colors: Red, Blue, and White. The objective of this algo to arrange these colors in order (in fastest…
