How to Find the Element that Appears Once in an ArrayLearn how to find the element that appears once and the other elements twice in an array using brute force, hashing, maps, and the optimal XOR approach6 min read·blog.masum.devJun 24, 2024
How to Find the Maximum Consecutive Ones in an ArrayLearn how to efficiently find the maximum number of consecutive 1's in a binary array using a linear time algorithm3 min read·blog.masum.devJun 22, 2024
How to Find the Missing Number in an ArrayFind the missing number in an array with numbers from 1 to N using 4 methods: brute force, hashing, summation and XOR, with details and complexity analysis7 min read·blog.masum.devJun 21, 2024
Intersection of Two Sorted ArraysEfficiently find intersections of two sorted arrays using brute force or two-pointer techniques, with complexity analysis, examples and edge cases4 min read·blog.masum.devJun 20, 2024
Union of Two Sorted ArraysLearn how to find the union of two sorted arrays using brute force and optimal two-pointers techniques, with detailed examples and complexity analysis5 min read·blog.masum.devJun 19, 2024