Spot the Bug Challenge 1

 Level EASY

A solution to the problem is given to you. This code contains some errors. You have to remove those errors and submit the correct code.

Problem Description:

Given two integral values, N and p. Your task is to print N rows, each row has to print integers from 1 to p, skipping integers 3 and p.

Input format:
The first and only line of input contains two space separated integers.
Constraints:

Time Limit: 1 second.
Value of N and p lies in the range: [1, 1000]
Output format:
N rows are getting printed up to the largest integral value till p (p not included).
Sample Input1:

5 7
Sample Output1:

1 2 4 5 6
1 2 4 5 6
1 2 4 5 6
1 2 4 5 6
1 2 4 5 6
Sample Input1:
5 8
Sample Output1:

1 2 4 5 6 7
1 2 4 5 6 7
1 2 4 5 6 7
1 2 4 5 6 7
1 2 4 5 6 7

Comments

Popular posts from this blog

MySQL Multi Source Master Slave Replication using GTID

Access and modify all the resources of our Wiki.js using WikiJS API

How to pass parameters in webhook?