ShareHub

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

Majority Element – CA21

Majority Element – CA21

Rogue Orion · 3/20/2026

My Thinking and Approach Introduction In this problem, I was given an array and asked to find the majority element. A majority element is the one that appear...

Reverse a Linked List – CA22

Reverse a Linked List – CA22

Rogue Orion · 3/20/2026

My Thinking and Approach Introduction In this problem, I was given the head of a singly linked list and asked to reverse it. At first, I thought it might be ...