You are on page 1of 4

Assignment-1 Date: 17/3/2018

Submission Date: 22/3/2018


Advanced Programming using Java

Ques1: Given an incomplete Sudoku configuration in terms of a 9x9 2-D square


matrix (mat[][]) the task to print a solution of the Sudoku. For simplicity you may
assume that there will be only one unique solution.

Example

For the above configuration the solution is


316578492
529134768
487629531
263415987
974863125
851792643
138947256
692351874
745286319

Input:
The first line of input contains an integer T denoting the no of test cases. Then T
test cases follow. Each test case contains 9*9 space separated values of the matrix
mat[][] representing an incomplete Sudoku state where a 0 represents empty block.

Output:
For each test case in a new line print the space separated values of the solution of
the the sudoku.

Constraints:
1<=T<=10
0<=mat[]<=9

Example:
Input:
1
30650840052000000008700003100301008090086300
5050090600130000250000000074005206300

Output:
31657849252913476848762953126341598797486312
5851792643138947256692351874745286319

Ques2.
Dataset: http://bit.ly/kaggletrain

1. Read the above csv file and do the following operations:


2. Find total number of characters present in the column ‘Name’ for all the
rows. Add a new column with the name ‘Name_length’ which displays the
total characters against each Name
Sample Output:

3. Retrieve first name of all rows from the ‘Name’ column


Ex: if Name is “Braund, Mr. Owen Harris”, your output should be ‘’
Braund”
Add a new column with the name ‘Name_length’ which displays the total
characters against each Name
Sample Output:

Submission Procedure:
Submit your .java file with filename = roll number (Example: R123456.java)
at following link:
https://www.dropbox.com/request/Z7SNmPEvrkDvfwD37QVe
Deadline: 22 March 2018

Note:

Make sure you do not copy paste the code. I will ask the logic/working
procedure as well to assign the marks. Please put your efforts in solving
these questions (it will be beneficial for you only), I will assign full
marks even if you fail to complete the code, but give me satisfactory
reason that you put your 100% in solving these questions.
It is not always about marks, but about learning.

You might also like