-
Related Posts (YARPP)
-
Topics
-
-
Find Common Elements in Two Arrays – Intersection of two Arrays
Write a c program to find common elements in two arrays.
Given two positive integer arrays arr1 and arr2 of lengths len1 and len2. We have to write a c code to find intersection of these two arrays. Both the arrays are sorted.
Let’s assume we have following two sorted arrays arr1 and arr2.
int arr1[] = {2, 3, 4, 5, 6};
int arr2[] = {4, 6, 7, 8, 9};
So the common elements in these two arrays is 4 and 6.
How to Reverse a String in Javascript
How to reverse a string in Javascript. In this tutorial, I am going to explain three simple ways to reverse a string in javascript. This question is asked by Shashank on my WebRewrite Facebook page.