Flipkart Coding Question – Solved

10 Live
Network Park - Maximum Noiseless Networks A network company wants to establish a network park to reduce the noise of different network operators. In network park, different operators will setup up their sender antenna, or receiver antenna, or both. The sender antenna and receiver antenna are represented by two list of size N and M respectively. These antennas will only receive/send to their respective sender/receiver antenna, but doing this process will retain some noise. Noise is a result of a crossed signal i.e., a signal in which the signal of one network operator is overlapped by the signal of the other network operator. Now network company wants to know the maximum numbers of network that will be noiseless. Write an algorithm to find the maximum numbers of network that will be noiseless. Input The first line of the input consists of an integer - sender_size, representing the total number of sender antennas. The next line consists of N space-separated integers, representing sender antennas(N). The next line consists of an integer - receiver_size, representing the total number of receiver antennas(M). The next line consists of M space-separated integers, representing receiver antennas. Output Print an integer representing the maximum number of networks that will be noiseless. Example Input: 3 785 3 758 Output: 2

Asked in: Flipkart

Image of the Question

Question Image Question Image

All Testcases Passed βœ”



Passcode Image

Solution


Please login to view the solution


Related Questions

| Given an n x m grid, where rows are numbered from 7 to n and columns from 1 to … |
| There are 'N' coders standing in a line, where i denotes the ith position of a … |
| A birthday party was attended by N number of kids, and each kid was given a uni… |
| Given a matrix of size m * n, where m denotes the number of rows (starting with… |
| A traveler is traveling from the city of Zeta to Omega. He starts with X amount… |
| As an operations engineer at Amazon, you are responsible for organizing the dis… |