Count words in a given string Given a string, count number of words in it.

# Category: Data Structures

## Merge two sorted arraysMerge two sorted arrays

Merge two sorted arrays Given two sorted arrays, the task is to merge them in

## Find subarray with given sumFind subarray with given sum

Find subarray with given sum Given an unsorted array of nonnegative integers, find a continuous

## Stock Buy Sell to Maximize ProfitStock Buy Sell to Maximize Profit

Stock Buy Sell to Maximize Profit The cost of a stock on each day is

## Program to find largest element in an arrayProgram to find largest element in an array

Program to find largest element in an array Given an array, find the largest element

## Print a given matrix in spiral formPrint a given matrix in spiral form

Print a given matrix in spiral form Given a 2D array, print it in spiral

## Sort an array of 0s, 1s and 2sSort an array of 0s, 1s and 2s

Sort an array of 0s, 1s and 2s Given an array A[] consisting 0s, 1s

## Linked List vs ArrayLinked List vs Array

Linked List vs Array Arrays store elements in contiguous memory locations, resulting in easily calculable

## Array of Strings in C++Array of Strings in C++

Array of Strings in C++ (All Different Ways to Create) In C and C++, a

## Find the Missing NumberFind the Missing Number

Find the Missing Number You are given a list of n-1 integers and these integers