Skip to content

Instantly share code, notes, and snippets.

View thinkphp's full-sized avatar
💭
If I have seen further it is only by standing on the shoulders of giants. Newton

Adrian Statescu thinkphp

💭
If I have seen further it is only by standing on the shoulders of giants. Newton
View GitHub Profile
@thinkphp
thinkphp / AIScheduler.css
Created June 13, 2025 10:30
AIScheduler.css
* {
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;
@thinkphp
thinkphp / AIScheduler.js
Last active June 13, 2025 10:57
AIScheduler.js
// 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() {
@thinkphp
thinkphp / AIScheduler.html
Created June 13, 2025 10:29
AIScheduler.html
<!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">
@thinkphp
thinkphp / factorial-dei.c
Created June 11, 2025 19:07
divide et impera factorial
#include <stdio.h>
//varianta iterativa
int fact(int n) {
int p = 1;
for(int i = 1; i <= n; ++i) {
p *= i;
}
return p;
}
@thinkphp
thinkphp / tehnici_de_programare.c
Created June 11, 2025 18:55
ATP Tehnici de programare
Tehnici de programare
----------------------
- Backtracking
- Divide Et Impera
- Greedy
Backtracking
@thinkphp
thinkphp / findmax.c
Created June 11, 2025 18:54
Divide Et Impera Find the max
#include <stdio.h>
int max2(int a, int b) {
if(a > b) return a;
else
return b;
}
// 0 9
@thinkphp
thinkphp / mapcolor.cpp
Last active June 12, 2025 02:50
Colorarea Hartilor cu Backtraking iterative
#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() {
#include <stdio.h>
#define SIZE 100
int n,
sol[SIZE],
used[SIZE];
void perm(int level ) {
if(level == n + 1) {
@thinkphp
thinkphp / gist:e1bca4d1fcdd7a82de7695e6a640759f
Last active June 12, 2025 02:22
backtracking permutari bkt iterativ
#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
@thinkphp
thinkphp / ja_pruefung_2016ws-aufgabe6.java
Created June 10, 2025 06:24
ja_pruefung_2016ws-aufgabe6.java
import javax.swing.*;
import java.awt.*;
class OvenTimerGUI extends JFrame {
public OvenTimerGUI() {
setTitle("Oven Timer");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new BorderLayout());