25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* n_queens.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: ruiferna <ruiferna@student.42porto.com> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/09/22 00:00:00 by student #+# #+# */
|
|
/* Updated: 2025/09/22 17:05:44 by ruiferna ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef N_QUEENS_H
|
|
# define N_QUEENS_H
|
|
|
|
# include <stdlib.h>
|
|
# include <unistd.h>
|
|
# include <stdio.h>
|
|
|
|
int is_safe(int *queens, int row, int col, int n);
|
|
void solve_nqueens(int *queens, int row, int n);
|
|
void print_solution(int *queens, int n);
|
|
void print_number(int n);
|
|
|
|
#endif |