ARAbhi Rajinitsabhi.hashnode.dev·Aug 16, 2022 · 1 min read3 ways to find second largest number in array JavaScripthttps://www.youtube.com/watch?v=qap75u_09QA The first method involves sorting whose time complexity is O(nlogn) The second method involves two for loop whose time complexity is O(n) The second method involves just one for loop whose time complexity i...00
ARAbhi Rajinitsabhi.hashnode.dev·Aug 16, 2022 · 2 min readSort array of JSON object by key value easily with JavaScripthttps://www.youtube.com/watch?v=oWI3j5NK2pI in this video i have explained how you can Sort array of JSON object by key value easily with JavaScript for those of you who don't want to watch video here is the code: suppose this is the array of JSON ob...00
ARAbhi Rajinitsabhi.hashnode.dev·Aug 16, 2022 · 1 min readcheck if string is palindrome using recursion in javascriptusing one two pointer let s = "madam"; let reverseArray = (s, left, right) => { if (left >= right) { console.log("it's palindrome"); return true; } if (s[left] == s[right]) { reverseArray(s, left + 1, right - 1); } else if (s[le...00
ARAbhi Rajinitsabhi.hashnode.dev·Aug 16, 2022 · 1 min readJavaScript program to reverse an array using recursionlet arr = [1, 2, 3, 4, 5]; let reverseArray = (arr, left, right) => { if (left >= right) { console.log(arr); return; } //swapping first element to last element [arr[left], arr[right]] = [arr[right], arr[left]]; //callling the functio...00
ARAbhi Rajinitsabhi.hashnode.dev·Jan 3, 2022 · 1 min readhow to add Tailwind CSS to your Vue 2 project easily [in one command]https://youtu.be/1494XtIYEts In this video, I have explained how to add Tailwind CSS to your Vue 2 project easily, this video can be very helpful for those are trying the old fashion way and getting lot's of errors like tailwindcss postcss plugin tai...01I