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 / exemplu_static.cpp
Created May 3, 2026 09:08
Exemplu utilizare static
#include <iostream>
using namespace std;
class Contor {
private:
static int numarObiecte;
public:
@thinkphp
thinkphp / traseu.cpp
Created May 3, 2026 08:43
Proiect Traseu
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
//CLASA PUNCT
class Punct {
@thinkphp
thinkphp / edit_distance_reconstruct.cpp
Created May 2, 2026 08:27
Edit Distance with reconstruction
/*
ioana ---> danaia
EDIT DISTANCE
-------------
cuvant1 --->cuvant2
source ---> destinatie
@thinkphp
thinkphp / closest-pair-points.cpp
Created May 2, 2026 07:04
Cele mai apropiate puncte din plan Complexitate patratica
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
struct Point {
double x, y;
};
@thinkphp
thinkphp / fork.c
Created May 2, 2026 06:40
fork() process IF
#include <iostream>
#include<unistd.h>
using namespace std;
int main(int argc, char const *argv[])
{
if( fork() ) {
@thinkphp
thinkphp / LLM.md
Created April 27, 2026 11:34
LLM Path Study

Iată lista ajustată, optimizată specific pentru LLM-uri:


🧠 LLM Path — Lista Ajustată (12 resurse)

🧮 Fundație Matematică (minimă, suficientă)

1. Introduction to Linear Algebra — Gilbert Strang Vectori, matrici, transformări. Fără asta nu înțelegi nici embeddings, nici attention.

@thinkphp
thinkphp / MajorityElement.java
Created April 26, 2026 14:11
Boyer Moore Algorithm
Algoritmul Boyer Moore Vote MAjority Element
int count = 0
int candidate = 0
for(int num: nums) {
if(count == 0) {
@thinkphp
thinkphp / Hanoi.java
Created April 26, 2026 13:05
Tower of Hanoi Divide Et Impera
import java.util.Scanner;
//Turnurile din Hanoi (DIVIDE ET IMPERA)
/*
Problema:
Se dau 3 tije simbolizate a, b, c.
@thinkphp
thinkphp / FastAlarm.java
Created April 26, 2026 12:28
Fast Alarm Codeforce java
import java.util.Scanner;
public class FalseAlarm {
static Scanner scanner = new Scanner(System.in);
static void solve() {
int n = scanner.nextInt(); //citim size array
@thinkphp
thinkphp / fast_pow.java
Created April 26, 2026 11:44
Ridicare la putere in timp logaritmic. O(log N)
/*
2^10
pow(2,10)
2 * 2 * 2 * ....* 2
de 10 ori
fast_pow(2,10)
log n = log 10 = logaritm in baza 2 din 10 = 3