Whenever we dive into DSA, one topic that consistently pops up is recursion. But what exactly is recursion? Let’s take a moment to break it down and truly understand what recursion means - and why it’s more than just a function calling itself. 🐶 The...
Welcome to the next pikoTutorial! The error we're handling today is a C++ compilation error: ISO C++ forbids declaration with no type What does it mean? In C++, variables must be declared with a type to inform the compiler about the kind of data the ...
Introduction In today’s fast-growing tech world, choosing the right programming language can define your future career path. If you're a student planning to build a successful career in the computer science industry, Python is one of the most valuabl...
It returned a build error when I was implementing the creation of a ROS2 node (yes I'm a beginner of ROS2): In file included from /usr/include/c++/13/bits/stl_tempbuf.h:61, from /usr/include/c++/13/memory:66, from /...
Optimizing the "Sum of Multiples of 3 and 5" Problem in Hackerrank Problem Overview In many coding challenges, we encounter the problem of finding the sum of multiples of certain numbers within a given range. One such problem is: "Find the sum of all...
Have you ever written a function that worked perfectly with 10 records, but when you gave it 10,000, it felt like your laptop was about to explode? Welcome to the world of time complexity, where how you write your code can make or break its performan...
Ever seen someone post a screenshot on Twitter (sorry, X) of a two-line function that solves a complex problem and thought, “Wow, this person either has a PhD in wizardry or has made a deal with the devil”? Meanwhile, you're out here with your 100-li...
Wait for the next 10 years and you will hear a new name in the field of AI “HAMZA” because I know exactly what I am up to! ~Hamza I remember the time when my parents were forcing me to study medicine and become a well-reputed doctor and I would neve...
We often believe that less number of lines = more efficiency, but is this true?Let us discuss about this misconception in this blog. Consider there are 9 balls, out of 9 balls 8 have are having same weight, and 1 ball have more weight.The task is to...
🧠 What is an AND Gate? In digital logic, an AND gate is a basic logic gate that outputs: 1 (True) only if all of its inputs are 1 0 (False) if even one input is 0 🔧 Truth Table for 2-input AND Gate: ABA AND B 000 010 100 111 For mor...