Dinko Marinacdinkomarinac.dev·Apr 17, 2024Riverpod Pagination: The Ultimate Guide for Flutter DevelopersIntroduction Since the inception of social media, one key feature seems to be the driving force of usage: the feed. We have all seen it, used and abused it. The key technical concept making this feature possible is called pagination. What is paginati...Discuss·1 like·296 readsFlutter
Supratim Sarkarssarkar8.hashnode.dev·Apr 13, 2024Pagination and Sorting using Spring Data JPAPagination is often helpful when we have a large dataset and we want to present it to the user in smaller chunks. Also, we often need to sort that data by some criteria while paging. Initial Setup : A Entity class that defines our table is required. ...DiscussJava
Adarsh Dabraladarshdabral.hashnode.dev·Apr 1, 2024Sorting Dictionaries in PythonToday, let's dive into a topic that might seem mundane at first glance but holds immense power when it comes to optimizing your Python code: sorting dictionaries. As a tech enthusiast and a perpetual learner myself, I've come to realize the importanc...DiscussPython
Himanshu Chauhanhimanshuchauhan.hashnode.dev·Mar 27, 2024Day 41: Sorting Algorithms with PythonToday is Forty-one blog of my Python learning and In this blog, we will discuss sorting algorithms. Sorting algorithms are fundamental in computer science and are used to arrange data in a specified order. Python provides built-in functions as well a...DiscussPython Python
Tarun Joshitarunjoc.hashnode.dev·Mar 16, 2024Searching and Sorting AlgorithmLinear Search / Sequential Search: Searching Technique is done in Sequential Manner. Sequential Search (A, i, x, n) Set i =0 if>n print element not found. if A[i]=x print Element Found. i=i+1 Exit Binary Search / Sequential Search It is Fast...DiscussSearching and sorting
Abou Zuhayrblog.zuhayr.codes·Mar 4, 2024WTF is Merge Sort?In the world of computer science, sorting is one of the most fundamental problems. It's about arranging items in a certain order, typically numerical or lexicographical. While this might sound simple, the efficiency of the sorting algorithm can signi...DiscussWhy DSAsorting
Rayane TOKOrayanetoko.hashnode.dev·Mar 2, 2024The Power of Sorting with JavaScript's Sort MethodIntroduction Sorting is a fundamental operation in programming, and JavaScript provides a versatile tool for this task—the sort method. In this article, we'll explore the sort method, unraveling its intricacies through practical examples and engaging...DiscussJavascript array methods: How it works?js.sort
Gulshan Kumarperfinsights.hashnode.dev·Feb 24, 2024Count Pairs Whose Sum is Less than TargetGiven a 0-indexed integer array nums of length n and an integer target, return the number of pairs (i, j) where 0 <= i < j < n and nums[i] + nums[j] < target. LeetCode Problem - 2824 // This is a Java class named Solution. class Solution { public...DiscussJava Solutionarray
Gulshan Kumarperfinsights.hashnode.dev·Feb 24, 2024Sort Array By ParityGiven an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. Return any array that satisfies this condition. LeetCode Problem - 905 class Solution { public int[] sortArrayByParity(int[] n...DiscussJava
Gulshan Kumarperfinsights.hashnode.dev·Feb 24, 2024Largest Number After Digit Swaps by ParityYou are given a positive integer num. You may swap any two digits of num that have the same parity (i.e. both odd digits or both even digits). Return the largest possible value of num after any number of swaps. LeetCode Problem - 2231 class Solution ...DiscussJava SolutionJava