Mindblown: a blog about philosophy.
-
Cooler than KnapSack
Familiarizing oneself with Design and Analysis of Algorithms this semester, one of the problems my professor keeps talking about is the KnapSack Problem. In the presented problem we have N items where each item has some profit and weight associated with it and also given a bag with capacity W, and profits associated with them being P.…
-
RESTful APIs
The concept of APIs is pretty fascinating when starting to code, because it allows us to integrate stuff into our projects which we would not want to develop ourselves. An API in short is just an interface for software applications to communicate. Its like the WhatsApp for applications. Let us assume you have an e-commerce…
-
Bash Scripting
BASH stands for Bourne Again Shell. It is based on bourne shell and is mostly compatible with it features. Shells act as an intermediary between users and their operating systems, interpreting commands. Shells allow batch command execution and interactive command input, while they are not necessary for program execution. Consider a shell as a way…
-
Setting up your development environment for Node.js, Express.js & MySQL
In this article, we will guide you through the crucial initial steps of setting up your development environment specifically tailored for Node.js, Express.js, and MySQL. By the end of this tutorial, you’ll have a well-configured environment, providing you with the necessary tools and resources to kickstart your MERN stack learning experience. Let’s pave the way…
-
What is Bogo Sort?
Sorting algorithms are precision-driven. Among all the effective and efficient sorting algorithms exists a highly inefficient and unconventional sorting algorithm – Bogo Sort. Instead of relying on strategic computation it relies on a game of chance. The pseudocode for bogo sort is given below: function isSorted(arr): for i from 0 to length(arr) – 2: if…
Got any book recommendations?