7 X 7 Codevita 9 Solution

Page Contents

7 X 7  TCS Codevita 9 Solution 2020

Problem Description
CODU is unraveling a 7×7 sudoku. Help him in explaining the novel Sudoku. 

Rules are as per the following 

  1. There are 7 districts shaded in an unexpected way. Every locale must have a solitary event of numbers between run [1, 7]. 
  2. Districts don’t have a fix shape and it can change from contribution to include. 
  3. Each line must have a solitary event of numbers between run [1, 7] over totally input. 
  4. Every segment must have a solitary event of numbers between go [1, 7] over completely input. 

A few numbers in certain lines, segments and areas will be given. These will be between [1, 7]. 

Zero (0) signifies that the number is secured. Revealing it will give a number between [1, 7]. 

Your errand is to fill the numbers [1,7] where there is a 0 with the end goal that the 7×7 Sudoku is understood. 

7×7 Sudoku is supposed to be unraveled when each district, each section, each column has precisely one event of numbers [1,7]. 

Imperatives 

7 < Known/Given numbers in Entire Sudoku < 14 

Info 

Info comprises of 14 lines. 

Initial 7 lines mean the places of numbers [1,7] in separate line and section. 

Next 7 lines mean the state of the districts inside the Sudoku. These will be indicated by 7 remarkable characters between letters in order [a-z]. 

Yield 

Print the unraveled Sudoku. 

7 lines, each line containing 7 space isolated numbers respecting all the conditions. 

Time Limit 

Models 

Model 1 

Info 

0 6 0 

2 6 5 1 7 4 3 

0 3 0 

an a b 

an a b c 

d e b c 

d e c 

f h e c 

f h e c 

f h c 

The above information can be envisioned as follows- 

[email protected]:image1.png 

Yield 

1 2 4 5 3 6 7 

3 5 6 7 1 2 4 

2 6 5 1 7 4 3 

4 7 1 3 2 5 6 

7 1 2 6 4 3 5 

5 4 3 2 6 7 1 

6 3 7 4 5 1 2 

Clarification 

There could be various arrangements. Delivering any arrangement as yield is satisfactory. 

Model 2 

Info 

0 4 0 

3 0 6 0 

0 6 0 1 

5 0 3 

0 1 0 2 

2 0 5 

r b 

g r b o 

g b o 

p g o 

p g d o l 

p d l 

d l 

The above information can be envisioned as follows- 

[email protected]:image2.png 

Note that the state of the districts in both the data sources are extraordinary. 

Yield 

7 1 3 4 5 2 6 

1 6 5 2 4 3 7 

3 5 2 6 1 7 4 

4 2 7 3 6 5 1 

5 7 4 1 2 6 3 

6 3 1 5 7 4 2 

2 4 6 7 3 1 5 

Clarification 

There could be a wide range of arrangements. Creating any arrangement as yield is satisfactory.

DOWNLOAD THE SOLUTION

Codevita Season 9 All Questions Solutions

Listed Here :

Leave a Comment

close
error: Content is protected !!