Posts by Dagdeloo • 25 points
5 posts
-
0
votes0
answers108
viewsQ: Backtracking to sudokus without solution
My algorithm can solve sudokus with solution (not optimized) but when sudoku has no solution the algorithm does not reach the stopping condition. Sudoku.hpp #ifndef _SUDOKU_H_ #define _SUDOKU_H_…
-
0
votes2
answers67
viewsA: Cmake accuses multiple statements of a class
I found the solution in this link in it it is said that to avoid the problem just add a settings in the file of Cmakelists.txt: set_source_files_properties(${SRCS} PROPERTIES HEADER_FILE_ONLY TRUE)…
-
0
votes2
answers67
viewsQ: Cmake accuses multiple statements of a class
Structure of the "project": ->shop ---->cpp store. ---->shop. h ---->main.cpp ---->Cmakelists.txt When I try to compile Vscode accuses that there are multiple denifications of class…
-
1
votes1
answer62
viewsQ: This is the iteration of a nested loop
How to use generators/iterators to achieve the generic iteration of a nested loop? I have the following function implemented in an extremely inefficient way. from pprint import pprint def center(i,…
-
1
votes0
answers350
viewsQ: How to plot multivariate functions with multiple constraints in the 3D plane with Wolfram Alpha?
I’m doing Calculus II at UFRN and I’m having a hard time analyzing certain forms on the 3D plane, so I decided to use Wolfram and its API to help me with my studies. This is a problem of an exercise…