Example 1
Example 2
2 <= memoryLimit <= 1051 <= source, destination <= 2 * 1051 <= timestamp <= 1091 <= startTime <= endTime <= 109At most 105 calls will be made to addPacket, forwardPacket, and getCount methods altogether.queries for addPacket will be made in increasing order of timestamp.Example 1
Example 2
2 <= memoryLimit <= 1051 <= source, destination <= 2 * 1051 <= timestamp <= 1091 <= startTime <= endTime <= 109At most 105 calls will be made to addPacket, forwardPacket, and getCount methods altogether.queries for addPacket will be made in increasing order of timestamp.