© 2023 Hashnode
#array
Arrays are one of the fundamental data structures in JavaScript, used to store collections of data in a single variable. They are widely used in many programming applications, from working with data t…
PHP’s json_decode function takes a JSON string and converts it into a PHP variable. Typically, the JSON data will represent a JavaScript array or object literal which json_decode will convert into a P…
Note: Before we begin with the blog, I would like to mention that this is my first blog, and I'm a beginner at writing technical articles. This article represents my current understanding as a beginner, and I might have made mistakes or ove…
Introduction JavaScript is the language of the web and is employed in over 90% of websites, along with HTML (Hyper Text Markup Language) and CSS (Cascading Style Sheets). Arrays in JavaScript are used…
When it comes to designing data structures, one often seeks optimal solutions that offer efficient operations. In this article, we will explore the approach to tackling this problem using JavaScript. …
Comparing two arrays is one of the widely used and most important challenges you might face in programming. There are many ways to do this, but we are going to learn the easiest and fastest ways. 1. U…
Sorting algorithms play a crucial role in programming. While there are several well-known sorting algorithms available, sorting an array that contains only three distinct elements poses an interesting…
Intuition After seeing the problem statement, I thought of the best one HashMap :)To store the frequency of one string and compare that with another string's frequency. However, we can also minimize t…
There are countless ways to approach this problem and optimize your solution. In this article, we’ll explore one of those strategies to tackle this problem. Let’s see the problem statement first. Prob…
if we don't assign value to an integer array or (primitive types) the default value assigned is 0. If we don't assign value to the string array by default the value is “null”. it is a literal like none in Python. string str = null; is cor…