## HackerRank: Permuting Two Arrays Program in C

There are two n-element arrays of integers, A and B. Permute them into some A’ and B’ such that the …

## HackerRank: Mars Exploration Solution in C

A space explorer’s ship crashed on Mars! They send a series of SOS messages to Earth for help. NASA_Mars_Rover.jpg Letters …

## HackerRank: Pangrams C Program to check If a string contains every letter of alphabet

A pangram is a string that contains every letter of the alphabet. Given a sentence determine whether it is a …

## HackerRank: Counting Valleys Solution in C

An avid hiker keeps meticulous records of their hikes. During the last hike that took exactly steps, for every step …

## HackerRank: Counting Sort 1 Solution in C

Another sorting method, the counting sort, does not require comparison. Instead, you create an integer array whose index range covers …

## HackerRank: Diagonal Difference Solution in C

Given a square matrix, calculate the absolute difference between the sums of its diagonals.

## HackerRank: Flipping bits of an unsigned Integer Solution in C

You will be given a list of 32-bit unsigned integers. Flip all the bits (1 to 0) and 0 to …

## LeetCode: Best Time to Buy and Sell Stock Solution in C

You are given an array of prices where prices[i] is the price of a given stock on an ith day. …

## LeetCode: Intersection of Two Arrays in C

Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear …