Click here to Skip to main content
15,883,799 members
Please Sign up or sign in to vote.
4.11/5 (5 votes)
See more:
Hi all,
Here is a little coding challenge:
- Solve this Sudoku
It is a 4 interleaved Sudoku which verify the '>' relations between cells.
Sudoku.png
I solved this puzzle years ago.
The 'coding challenge' tags have been closed.

What I have tried:

[Update]
By popular demand, here is my code for the edges of cells.
C++
init_HV( 1, "      <><><><>      ", "      AVAVAAAVV      ");
init_HV( 2, "      ><><<>><      ", "      AAAVVVVAV      ");
init_HV( 3, "      <>>><><<      ", "      VVVAAVAAV      ");

init_HV( 4, "      >><<><<>      ", "      AAAVVAVVA      ");
init_HV( 5, "      ><><<><>      ", "      VAVAAVAVV      ");
init_HV( 6, "      <><>><><      ", "      AVAAAVVAV      ");

init_HV( 7, "><><<<><<>><>><<><<<", "AAAAAVVVVAAVVAAAAAVVV");
init_HV( 8, "><><><>><>><<<<<>>><", "VAVAVAVAVVVAAAAVVVAAA");
init_HV( 9, ">><><><><<><><><><><", "VVVVVVAAA   VAVVVAAAA");

init_HV(10, ">><><><<    <>><<<><", "VVAAAVAVV   AAVAAAVVA");
init_HV(11, "<<><><><    <><<<><<", "AAVVVAAAV   VVAAAAAAV");
init_HV(12, "<<>><>><    ><<<<><>", "AAVAAVVAV   AAAVVVAAV");

init_HV(13, "<><<><>><><>><>><<<>", "VAVVVAVAAVAVVAAAAAVVV");
init_HV(14, "<>><>><>><>><<<><><>", "VAVAVVAVAAVVAVVVAAAVV");
init_HV(15, "<><<><<<>><<>>><<>>>", "      AVVVAAVAA      ");

init_HV(16, "      ><><<<<>      ", "      VAAAAAVVV      ");
init_HV(17, "      <<><<><>      ", "      AVVAAAAVA      ");
init_HV(18, "      ><<<<>><      ", "      AAAAVVAVV      ");

init_HV(19, "      >><><>><      ", "      VAAVAVVAA      ");
init_HV(20, "      ><><><<>      ", "      VVVAVAAAA      ");
init_HV(21, "      <<<><<<<      ", "                     ");
Posted
Updated 7-Jun-18 7:13am
v2
Comments
PIEBALDconsult 6-Jun-18 22:06pm    
No thanks.
Mohibur Rashid 6-Jun-18 23:41pm    
I tried to do backtrack in my head, it ran out of memory. OS got restarted.
OriginalGriff 7-Jun-18 0:21am    
Six. That cell there is definitely a six.
Jörgen Andersson 7-Jun-18 1:57am    
The challenge is to encode all those ">".
I think I'll pass.
Patrice T 7-Jun-18 7:15am    
I ensure you it is not that complicated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900