Top Tweets for #Mergesort
For anyone running Claude reviews on GitHub ๐
One REVIEW.md turns the wall of text into real bugs only: terse, max 60 words per finding, no praise, no recap. A clean PR gets "No actionable findings."
@mergesort's full file: https://t.co/RI8LhrwUWK
If your AI code reviewer narrates more than it finds, steal this ๐
A REVIEW.md that tells Claude: terse, grounded bugs only, max 60 words per finding, no praise or recap. Keeps it out of your dev context too.
Full file + before/after by @mergesort: https://t.co/RI8Lhrwn7c
โ
Answer:
Two-pointer technique O(n+m):
function mergeSorted(a1, a2) {
let i=0, j=0, result = [];
while (i < a1.length && j < a2.length) {
if (a1[i] < a2[j]) result.push(a1[i++]);
else result.push(a2[j++]);
}
return๐
Day 44/365: Divide & Conquer Algorithms.
โข Binary Search โ sorted array, halve space each step, O(log N) โ found 60 at index 5
โข Merge Sort โ recursive split + merge sorted halves, O(N log N) stable sort
Key takeaways
โข Divide and Conquer = break problem โ solve subproblems โ combine results
โข Binary Search: Fastest search on sorted data (beats linear scan)
โข Merge Sort: Reliable sorting performance, great for linked lists too (no random access needed)
โข Trade-off: Merge Sort uses extra space; Binary Search needs pre-sorted input
#DSA #Java #CodingStreak #100DaysOfCode #BinarySearch #MergeSort

Day8-Today i did bit of dsa reversing a palindrome,quicksort and mergesort.
Looking forward for a better tomorrow
Choosing a sorting algorithm is really choosing trade-offs.
QuickSort, MergeSort, HeapSortโeach balances speed, memory, and worst-case behavior differently.
In high-volume systems, the right algorithm can save millions in compute costs every single day.
โก Day 5 of DSA Journey: Merge Sort & Quick Sort โ The Real Game Changers
๐งฌ 1. Merge Sort โ Divide & Conquer Elegantly
Merge Sort splits the array into halves, sorts them individually, and then merges them.
void merge(int arr[], int l, int m, int r) {
int n1 = m - l + 1;
int n2 = r - m;
int L[n1], R[n2];
for(int i = 0; i < n1; i++) L[i] = arr[l + i];
for(int j = 0; j < n2; j++) R[j] = arr[m + 1 + j];
int i = 0, j = 0, k = l;
while(i < n1 && j < n2)
arr[k++] = (L[i] <= R[j]) ? L[i++] : R[j++];
while(i < n1) arr[k++] = L[i++];
while(j < n2) arr[k++] = R[j++];
}
void mergeSort(int arr[], int l, int r) {
if(l < r) {
int m = l + (r - l) / 2;
mergeSort(arr, l, m);
mergeSort(arr, m + 1, r);
merge(arr, l, m, r);
}
}
Time: O(n log n)
Space: O(n)
โ
Stable sort
โ
Best for linked lists, large datasets
โ๏ธ 2. Quick Sort โ Divide & Rule Fast
Quick Sort chooses a pivot, partitions the array, and recursively sorts the two halves.
int partition(int arr[], int low, int high) {
int pivot = arr[high];
int i = low - 1;
for(int j = low; j < high; j++) {
if(arr[j] < pivot) {
i++;
swap(arr[i], arr[j]);
}
}
swap(arr[i + 1], arr[high]);
return (i + 1);
}
void quickSort(int arr[], int low, int high) {
if(low < high) {
int pi = partition(arr, low, high);
quickSort(arr, low, pi - 1);
quickSort(arr, pi + 1, high);
}
}
Time: O(n log n) (average), O(nยฒ) (worst case if pivot is bad)
Space: O(log n) (stack space)
โก Very fast in practice
โ Not stable
๐งฉ Challenge of the Day:
> โ๏ธ Implement both Merge Sort and Quick Sort to sort this array:
[38, 27, 43, 3, 9, 82, 10]
Bonus: Count the number of recursive calls made in both algorithms.
Day 27 of Learning java with @kunalstwt
Today i explored the Merge Sort algorithm , one of the most efficient sorting techniques.
It uses a DIVIDE AND CONQUER strategy to recursively divided the array and merge in sorted order.
#60DaysOfLearning2025 #DSAwithKunal #Mergesort
#DSA

ู
ุซุงู ุนูููุง ุ ู
ุซููุง ููุณ ููุฑุฉ ุฎูุงุฑุฒู
ูุฉ ุงูุชุฑุชูุจ ุงูุดููุฑุฉ MergeSort.
ุฃูุถู ู
ุซุงู ูุทุจู ูููุง ููุฑุฉ Recursive ูู ูุฐู ุงูุฎูุงุฑุฒู
ูุฉ ููุด ุ ูุฃู ููุฑุฉ ุงูุฎูุงุฑุฒู
ูุฉ ูู ุฃููุง ูููู
ุจุนู
ู ุชูุณูู
ููู
ุตูููุฉ ุฃูุซุฑ ู
ู ู
ุฑุฉ ุญุชู ููุตู ุฅูู ู
ุฑุญูุฉ ุชุตุจุญ ุบูุฑ ูุงุจูุฉ ููุชูุณูู
..
So, QuickSort & MergeSort are same.
I mean Almost.

Day 8 of #100DaysOfDSA
Merge Sort
A divide-and-conquer algorithm that splits the array into halves, sorts each half, and merges them back in order.
Time Complexity:
- Best: O(n log n)
- Avg: O(n log n)
- Worst: O(n log n)
#Java #DSA #MergeSort #SortingAlgorithm #CleanCode

๐ Mastered Merge Sort & Quick Sort today!
๐น Merge Sort: O(n log n), stable, extra space needed.
๐น Quick Sort: O(n log n) avg, in-place, unstable, can hit O(nยฒ) worst case.
Choosing the right algorithm !
#DSA #CodingJourney #ProblemSolving #MergeSort #QuickSort

๐ Sorting algorithms matter more than you think. Imagine searching through a billion recordsโBubble Sort would take days, while QuickSort or MergeSort can do it in seconds.
โก๏ธ Knowing the right algorithm can save massive time and resources.

๐ DSA Fact:
Sorting matters! ๐
โฃ QuickSort: โก Fast, avg.
โฃ MergeSort: ๐ Stable, always
โฃ Bubble Sort: ๐ข Justโฆ donโt.
Which sorting algorithm do you use the most?
#DataStructures #Algorithms

@blueavee <MergeSort>
cs+math grind
.went a lil deep into concurrency and multithreading
.made an existing mergesort multithreaded
.implemented a multithreaded ring buffer from scratch
.trig and calc is what i did most in the past 2 days

@_DragonHead_ I coded mergesort on assembly
๐ DSA Journey with @ApnaCollegefb : Day 20
๐น Merge Sort Algorithm
๐น Quick Sort Algorithm
๐น Worst Case Time Complexity - Quick Sort
๐น Search in Rotated Sorted Array
#DSA #DataStructures #Algorithms #Coding #Programming #Recursion #ApnaCollege #MERN #MergeSort #QuickSort

Merge Sort ๐ Quick Visualization โถ๏ธ
Complete Explanation & Analysis available at BITBEE Youtube : https://t.co/oLG4Xcr8y1
#MergeSort #SortingAlgorithm #DataStructures #Algorithms #CodingInterviewPrep #JavaProgramming #PythonProgramming #TechReels #LearnToCode #ProgrammingTutorial #VisualizedSorting #CodeVisualization #ComputerScience #CSFundamentals #TechEducation #DeveloperLife #ProgrammingBasics
Difference between Arrays.sort() and Collections.sort() in Java.
๐ ๐๐ซ๐ซ๐๐ฒ๐ฌ.๐ฌ๐จ๐ซ๐ญ():-It sorts the arrays which can be the type of primitive data type.
๐๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ:- Dual-Pivot Quicksort algorithm
๐๐ข๐ฆ๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ฑ๐ข๐ญ๐ฒ: O(nlog(n))ย ย
๐๐ฎ๐ฑ๐ข๐ฅ๐ข๐๐ซ๐ฒ ๐๐ฉ๐๐๐ : O(1)
๐ ๐๐จ๐ฅ๐ฅ๐๐๐ญ๐ข๐จ๐ง๐ฌ.๐ฌ๐จ๐ซ๐ญ():- It sort only the objects which extends List interface(ArrayList,LinkedList etc)ย or user-defind class objects if class implements Comparable.ย
๐๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ:- Adaptive Mergesort algorithm
๐๐ข๐ฆ๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ฑ๐ข๐ญ๐ฒ: O(nlog(n))ย ย
๐๐ฎ๐ฑ๐ข๐ฅ๐ข๐๐ซ๐ฒ ๐๐ฉ๐๐๐ : O(1)
Examples:-
โ
Arrays.sort():-
import java.util.Arrays;
class ArraySort {
public static void main(String arg[]){
ย int arr[] = {10,4,6,7,8};
ย Arrays.sort(arr); // {4,6,7,8,10}
ย }
}
โ
Collections.sort():-
import java.util.Collection;
import java.util.List;
class CollectionSort {
public static void main(String arg[]){
ย List<Integer> arrList = List.of(11,5,6,3,2,8)
ย Collections.sort(arrList); // {2,3,5,6,8,11}
ย }
}
Follow @full_stack_geek๐จโ๐ป for more interview questions.
#java #corejava #java8 #springboot #backenddeveloper #fullstackdeveloper #javadeveloper #javaprogramming
![full_stack_geek's tweet photo. Difference between Arrays.sort() and Collections.sort() in Java.
๐ ๐๐ซ๐ซ๐๐ฒ๐ฌ.๐ฌ๐จ๐ซ๐ญ():-It sorts the arrays which can be the type of primitive data type.
๐๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ:- Dual-Pivot Quicksort algorithm
๐๐ข๐ฆ๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ฑ๐ข๐ญ๐ฒ: O(nlog(n))ย ย
๐๐ฎ๐ฑ๐ข๐ฅ๐ข๐๐ซ๐ฒ ๐๐ฉ๐๐๐ : O(1)
๐ ๐๐จ๐ฅ๐ฅ๐๐๐ญ๐ข๐จ๐ง๐ฌ.๐ฌ๐จ๐ซ๐ญ():- It sort only the objects which extends List interface(ArrayList,LinkedList etc)ย or user-defind class objects if class implements Comparable.ย
๐๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ:- Adaptive Mergesort algorithm
๐๐ข๐ฆ๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ฑ๐ข๐ญ๐ฒ: O(nlog(n))ย ย
๐๐ฎ๐ฑ๐ข๐ฅ๐ข๐๐ซ๐ฒ ๐๐ฉ๐๐๐ : O(1)
Examples:-
โ
Arrays.sort():-
import java.util.Arrays;
class ArraySort {
public static void main(String arg[]){
ย int arr[] = {10,4,6,7,8};
ย Arrays.sort(arr); // {4,6,7,8,10}
ย }
}
โ
Collections.sort():-
import java.util.Collection;
import java.util.List;
class CollectionSort {
public static void main(String arg[]){
ย List<Integer> arrList = List.of(11,5,6,3,2,8)
ย Collections.sort(arrList); // {2,3,5,6,8,11}
ย }
}
Follow @full_stack_geek๐จโ๐ป for more interview questions.
#java #corejava #java8 #springboot #backenddeveloper #fullstackdeveloper #javadeveloper #javaprogramming](https://pbs.twimg.com/media/F23Aiu3akAA8Mv-.jpg)
@mattxcurtis @Benv_dev @_anmolmalhotra @appstorage @mergesort Wow, thanks for sharing this, had not heard of it and looks very useful/interesting.
@Benv_dev @_anmolmalhotra @appstorage Something like @mergesort's Boutique (https://t.co/KK83oek8NC) might sit neatly in the spot you're wanting here.
But the typical move would be to essentially use Core Data, define an object/entity that represents an Event, and pass that around
@mergesort @demozabel Also the quality writing on https://t.co/QpIr88FbFf is wonderful. The branding on both your site and these packages is just **chefs kiss**
@mergesort @demozabel I read through that thread & itโs links. I gotta say Bodega and Boutique both bear brilliance. The ease of use is awesome. MVCS is a welcome addition to the alphabet soup we iOS devs seem to love! Lol thereโs probably a good โconvenience Storeโ joke to be made here somewhere. ๐
@mergesort @demozabel Dammit Joe. Why you gotta link the goods just as Iโve walked out of my house. Added to the reading list! ๐ญ
@mergesort Looks super awesome joe, canโt wait to try it out when I get home from my 2-week europe road trip :p (today)
@mergesort Woah no way, I was actually looking into building something exactly like this yesterday, guess I wonโt have to anymore ๐
Python Tutorial#14 Merge Sort Algorithm in Tamil https://t.co/k1UxvNWaZR via @YouTube
For more visit my Blog : : https://t.co/rzJo1TapDi
Subscribe and Like
#Python
#Pythontutorial
#Tutorial
#mergesortAlgorithm
#mergesort
#Algorithm
#Tamil
FisadDi has uploaded video of Design and Analysis of Algorithms
Topic Name : Correctness of Merge Sort [Hindi]
Link id Given : https://t.co/Pw2kieQW9Z
Please like, share and subscribe
#CorrectnessofMergeSort #MergeSort #DesignandAnalysisofAlgorithms #DAA #ADA #BackBachers
We have uploaded video of Design and Analysis of Algorithms topic name is Merge Sort link is given : https://t.co/jXFHxNs4kB
Please like share and subscribe.
#DesignandAnalysisofAlgorithms #MergeSort #DAA #ADA #BackBanchers #Mathematics
Last Seen Hashtags on Sotwe
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.2M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers





























