Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/randhir200/two-sorted-arrays

You are given two arraysAandB, each of size N. The first array A, is sorted in ascending order, while the second array is sorted in descending order. You have to find the number of elements common in both the arrays. Try to solve this without using any extra space, Constraints 1 <=T<= 10 1 <=N<= 1000000 1 <=A[i]<= 1000
https://github.com/randhir200/two-sorted-arrays

Last synced: 20 days ago
JSON representation

You are given two arraysAandB, each of size N. The first array A, is sorted in ascending order, while the second array is sorted in descending order. You have to find the number of elements common in both the arrays. Try to solve this without using any extra space, Constraints 1 <=T<= 10 1 <=N<= 1000000 1 <=A[i]<= 1000

Awesome Lists containing this project