This document provides a C program that identifies duplicate subtrees in a binary tree using hashing techniques. The program uses a hash map […]
C
Finding Union and Intersection of Two Arrays using Hashing in C
Program Structure This C program uses a hash table (implemented as an array) to store the elements of two input arrays. By leveraging the […]
Check for Zero Sum Subarray in C
Program Explanation The program checks if there exists a subarray within a given array that has a sum equal to zero. It utilizes […]
Finding the Longest Consecutive Sequence in an Array in C
Program Structure This C program identifies the longest consecutive sequence of integers within an unsorted array. It utilizes a hash set (using a […]
Group Anagrams from a List of Strings in C
Program Overview This C program takes a list of strings and groups the anagrams together. An anagram is a word or phrase formed by […]
Find Subarray with Given Sum Using Hashing in C
Introduction This program finds a contiguous subarray within a one-dimensional array of integers that sums to a given value. The solution utilizes hashing […]
Two Sum Problem Solution in C
The Two Sum problem is a common algorithmic problem where you are given an array of integers and a target sum. The objective […]
Count Frequencies of Elements in an Array Using Hashing in C
Program Explanation This C program counts the frequencies of elements in an integer array using a hash table (implemented as an array). The […]
Basic Hash Table Implementation in C
Introduction A hash table is a data structure that implements an associative array, a structure that can map keys to values. It uses […]
Ternary Search Algorithm in C
Introduction The ternary search algorithm is a divide-and-conquer algorithm used for finding an element in a sorted array. It works by dividing the […]
