Ahamad Basha NSintro-to-c-net-core.hashnode.dev·Dec 13, 2024C# Non-Generic SortedList: A Detailed ExplanationImagine a phonebook. It's a list of people's names (keys) and their corresponding phone numbers (values). The special thing about a phonebook is that it's always sorted alphabetically by the names. This makes it incredibly easy to find someone's numb...sorted list
Ahamad Basha NSintro-to-c-net-core.hashnode.dev·Dec 12, 2024Default Method of Array1. Array.Sort() 🧹: Sorts the elements of an array in ascending order. int[] numbers = { 3, 1, 4, 1, 5, 9 }; Array.Sort(numbers); // numbers will be { 1, 1, 3, 4, 5, 9 } 2. Array.Reverse() 🔄: Reverses the order of elements in an array. Array.Revers...array
Tanusha Rainatechshetalks.hashnode.dev·Jul 30, 2024Creating a Sorting Visualizer with Sound : A Step-by-Step JourneyCreating a sorting visualizer is a fantastic way to both understand and demonstrate various sorting algorithms visually. In this article, we will walk you through the process of developing a sorting visualizer, including planning, designing, implemen...20 likesjs
Cloud Tunedcloudtuned.hashnode.dev·Jul 26, 2024Cheat Sheet #day61 - sortsort Command Cheatsheet The sort command in Unix-like systems is used to sort lines of text files. It is highly configurable and supports various sorting criteria. Here’s a quick reference guide: Basic Syntax sort [OPTION]... [FILE]... Common Option...Cheat Sheetssort
Manas Upadhyaymanasupadhyay.hashnode.dev·Nov 23, 2023All sorting algorithms ( detailed explanation )Introduction In this article, we are going to deep dive into the sorting algorithms. Sorting algos as the name suggests are used to sort arrays. There are mainly 7 types of sorting algorithms: Selection sort Bubble sort Insertion sort Merge sort ...10 likes·49 readsDSAsorting algorithms
Hari Krishna Anemharikrishna.hashnode.dev·Sep 19, 2023Find the second largest number in a arrayfunction findSecondLargest(arr) { // Sort the array in descending order arr.sort(function(a, b) { return b - a; }); // Return the element at index 1 (the second largest) return arr[1]; } // Example usage const numbers = [10, 5, 8, 20,...array
Grace Oluwaseguntechylawyer.hashnode.dev·Jun 5, 2023How to Sort Arrays in JavaScriptIntroduction 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 for storing multiple values under one variable na...58 readsarray
Dheeraj Jhasorting.hashnode.dev·May 14, 2023SortingFirst, what's sorting, Sorting is a way in which data can be in ascending(small to big) or descending(big to small) order it reduces the human effort and time to get the smallest or largest value according to need. There are various methods to do the...1 likesorting
Mrunalini Dudhagawalisimplecodeguide.hashnode.dev·Feb 17, 2023Sorting Algorithms: Bird's eye viewSorting algorithms are a set of procedures that are used to organize a collection of items into a specific order. This process is important in computer science, as sorting is a fundamental operation that is used in many different applications. Sortin...29 readssorting algorithms
Bello Shehucodelery.hashnode.dev·Jan 17, 2023How to sort an array of objects by one or more of their propertiesIf you have an array of objects such as people, cars etc., and you wish to sort them in a given order, the sort method of the array object is handy in doing so. The sort method is not limited to primitive values like a number and a string, it is also...1 like·89 readssoftware development