This repository contains my C++ practice codes while learning Data Structures and Algorithms.
The following problems are implemented in the arrays folder.
File: TwoSum.cpp
Description: Finds two numbers in an array whose sum equals the target value.
File: SwapAlternateArray.cpp
Description: Swaps alternate elements in a 1-D array.
File: BinarySearch.cpp
Description: Uses binary search to find the first and last occurrence of a number.
File: searchPosition.cpp
Description: Finds the index where the target should be inserted in a sorted array.
File: UniqueBinaryString.cpp
Description: Solution for LeetCode problem 1980.