Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Assignment

1. You are given an integer ​N​ denoting an ​NxN​ matrix. Initially,


each cell of the matrix is empty. You are given ​K​ tasks. In each
task, you are given a cell ​(i,j)​ where the cell ​(i,j)​ represents the ​i
row and ​j​ column of the given matrix.You have to perform each
task sequentially in the given order. Each task is described in a
cell ​(i,j)​. For each task, you have to place ​X ​in each cell of row
and each cell column . After you complete each task, you are
required to print the number of empty cells in the matrix.
Input format:
1. The first line contains two space-separated integers N and
K​ where ​N​ is the number of rows and columns in the given
matrix and ​K​ is the number of tasks respectively.
2. Next ​K​ lines contain two space-separated integers.
Output format:
Print ​K​ space-separated integers denoting the number of
empty cells in the matrix.

2. Create a Django application for the following problem statement.


1. Product listing page​ which lists all the products available
in the database. List their name and quantity.
2. Product detail page​ where details of a product is
displayed. Details are:- ​Name, Quantity, Image of the
product.
3. Registration Page​, User should register before accessing
detail page or listing page. User Registration details: -
email, phone number, username, full name & password​.
4. Login​ functionality with ​session management​.
Please add ​10 products, 3 users.​ Create a virtual environment for the
application to freeze the requirements of the application and provide
the github link of the repo in the mail.

-Extra points for good UI.

Submission: Send your solution to ​jobs@cyberboxer.com​. Please


mention your name and contact details in your assignment.

You might also like