ShareHub

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

Squares of a Sorted Array

Squares of a Sorted Array

Apex Shark · 3/22/2026

Squares of a Sorted Array Problem You’re given a sorted array (in non-decreasing order), which may include negative numbers. The task is to return a new arra...

CA 05 - Reverse the array

CA 05 - Reverse the array

Apex Shark · 3/22/2026

Problem Reverse Array Problem You are given an array of integers arr[]. The goal is to reverse the array in place, without using any additional memory. In si...

Valid Anagram

Valid Anagram

Apex Shark · 3/22/2026

Introduction Strings are one of the most important topics in programming. A common problem is checking whether two strings are anagrams, which means they con...