This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Date globale | |
| let employees = []; | |
| let bestSchedule = null; | |
| let constraints = {}; | |
| // Zilele săptămânii | |
| const days = ['Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata', 'Duminica']; | |
| // ADDED angajat | |
| function addEmployee() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="ro"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AI Scheduler - Planificare Automată cu Algoritmi Genetici</title> | |
| <<link rel="stylesheet" href="AISche.css" /> | |
| </head> | |
| <body> | |
| <div class="container"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| //varianta iterativa | |
| int fact(int n) { | |
| int p = 1; | |
| for(int i = 1; i <= n; ++i) { | |
| p *= i; | |
| } | |
| return p; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tehnici de programare | |
| ---------------------- | |
| - Backtracking | |
| - Divide Et Impera | |
| - Greedy | |
| Backtracking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int max2(int a, int b) { | |
| if(a > b) return a; | |
| else | |
| return b; | |
| } | |
| // 0 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #define SIZE 100 | |
| using namespace std; | |
| int stack[SIZE]; | |
| int A[SIZE][SIZE]; | |
| int level, n, k; // n = număr de țări, k = număr de culori | |
| int sol() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #define SIZE 100 | |
| int n, | |
| sol[SIZE], | |
| used[SIZE]; | |
| void perm(int level ) { | |
| if(level == n + 1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #define FIN "permutari.in" | |
| #define FOUT "permutari.out" | |
| #define SIZE 100 | |
| using namespace std; | |
| int stack[ SIZE ],//pastreaza solutiile /permutarile | |
| level, | |
| n;//card |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.swing.*; | |
| import java.awt.*; | |
| class OvenTimerGUI extends JFrame { | |
| public OvenTimerGUI() { | |
| setTitle("Oven Timer"); | |
| setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
| setLayout(new BorderLayout()); | |