Abeer Abdul Ahadabeer.hashnode.dev·Sep 16, 2024DSA with JS: Big O Notation with JavaScript ExplainedInstead of a lot of gibberish, let's get straight to the point. What is Big O Notation and what is it used for? The clear answer is Big O notation is a way to describe how the performance of an algorithm changes as the size of the input grows. It hel...40 readsDSA with JSDSA
Sandeep Ranasandrana.hashnode.dev·Jul 16, 2024DSA - Pattern Problem - IPrerequisite: Knowledge of JavaScript syntax Basic understanding of for loops and while loops Pattern * * * * * * Approach let str = ""; for (let i = 0; i < 3; i++) { for (let j = 3; j > i; j--) { str += "*"; } str += "\n"; } console....Data Structures and Algorithms In Javascriptpatterns
Sandeep Ranasandrana.hashnode.dev·May 1, 2023Maximum Product of Three NumbersIntroduction The task is to find the product of 3 numbers for an array such that the result is greater than the product of any 3 numbers in the same array. Prompt Given an integer array, find three numbers whose product is maximum and return the max...1 likeJavaScript