ShareHub

Discover and share articles, posts, and links from across the web.

KADANE'S ALGORITHM

KADANE'S ALGORITHM

Echo Puma · 3/22/2026

When I first saw this problem, it looked tricky because it asks for the maximum sum of a subarray. But after working through it, I realized the solution is s...

Different Sorting Methodologies

Different Sorting Methodologies

Echo Puma · 3/22/2026

Different Sorting Methodologies Introduction Sorting is one of the most important operations in computer science. Sorting means arranging elements in a parti...

ANAGRAMS

ANAGRAMS

Echo Puma · 3/22/2026

How I Understood Checking Anagrams in Python (LeetCode 242) When I first saw this problem, it looked like it might require sorting or multiple passes, but af...

Move Zeroes to End

Move Zeroes to End

Prism Condor · 3/22/2026

In array manipulation problems, a common task is to move all zeroes to the end of an array while keeping the relative order of non-zero elements. This is esp...