Flipkart Coding Question – Solved

2 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

| The supply chain manager at one of Amazon's warehouses is shipping the last con… |
| Determine the highest value after executing n steps on an infinite 2D grid that… |
| Amazon Prime Video is developing a new feature called "Segmentify." This featur… |
| In this new stock prediction game launched on Amazon Games, Player 1 provides P… |
| Amazon operates numerous warehouses, with each warehouse holding inventory[i] u… |
| In Amazon's highly efficient logistics network, minimizing operational overhead… |