The Question is from the interview section of leetcode and is marked as easy difficult. Here is the description: The Problem Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. An input string is valid if: Example 1: Input: s = “()” Output: true Example 2:…
Category: Infinity Fitness
Everything you need to know about building muscles and maintaining a great overall health
The Problem: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string “”. Example 1: Input: strs = [“flower”,”flow”,”flight”] Output: “fl” The Solution: This is a question from leetcode. Let me show you the solution and…
Intel vs AMD was tough but with time AMD was the obvious choice for gamers and Intel was for general purpose usage. But, with the introduction of apple m chipsets the battle of processors became even more interesting. The way apple introduces its products people believe apple is literally the…
Every year Samsung sets new standards in smartphone industry with its S series smartphone. The S series smartphones are a direct competition to the iPhones. And probably the most innovative smartphone series for past couple of years. But, the inability of Samsung to build a processor that could compete with…
You have been working out for years getting good progress and suddenly you stop getting any results. Your body stabilizes in a certain weight class. And doesn’t progress further no matter how hard you hit. That’s what is called muscle plateau. Plateau is a condition where no further progress can…
Over the course of centuries the food we eat has drastically changed. This change has been both good and bad. Today food is easily available to us but it lacks many of the vital nutrients. Especially vitamins and minerals. Vitamins and Minerals are very essential for proper functioning of the…
Sprint is your first step to be limitless Ever wondered what’s the best exercise to build muscle and shred fat? Is it weightlifting or cardio or something alienated? It is sprinting. Sprinting is one of the most effective exercises, yet it is ignored by most people. Now you must argue…
Building a great physique is the primary objective of masculinity Body recomposition is true life example of rebirth. You still have the same soul but your body is entirely different. It simply means packing more muscles at the same body weight but with less fat. Less fat more muscles allows…
Creating EC2 instances is as easy as pressing a button. But, connecting to EC2 is not as easy. There are basically two easy ways to connect to ec2 via windows and mac respectively. Macs are famous for the simplicity they bring to a developers life. In this case also macs…
ReactJS is a library that needs no introduction in the industry today. It is being used by small to large and even enterprise businesses to build intuitive user experiences. But, what led to React’s massive industry takeover? React first launched in 2012 didn’t gain much attention until late 2018 when…