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 / queue.c
Created October 26, 2026 09:29
Queue Data Structure
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
/*
Coada normala (liniara) implementata ca VECTOR FIFO First In First Out
head = pozitia primului element
tail = urmatoarea pozitie libera pentru inserara
size = numarul de elemente din coada
@thinkphp
thinkphp / stack-vector.c
Created October 26, 2026 08:27
stiva implementata ca Vector structura de baza
/*
Laborator 3 - exercise 2 Stiva LIFO implementata ca vector
index: 0 1 2 3 .... MAX - 1
[4] [15] [2] [17] [].....
stiva plina = top = MAX - 1
stiva goala = top = -1
*/
@thinkphp
thinkphp / stack-linked-list.c
Created October 26, 2026 07:45
STIVA-implementata ca lista simplu inlantuita
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
/*
Laborator 3. STIVA (LIFO) implementata cu lista simplu inlantuita
@thinkphp
thinkphp / mostenire.cpp
Created October 21, 2026 11:27
mostenire.cpp
#include <iostream>
#include <string>
using namespace std;
//clasa de baza
class Animal {
//modificatori de access
protected:
@thinkphp
thinkphp / platforme-certificate.md
Last active October 20, 2026 21:23
platforme certificate
@thinkphp
thinkphp / problema7.c
Last active October 19, 2026 08:54
DLL Frec problema 7
// Doubly Linked List
// list->first->prev = NEWNODE
// NEWNODE[key, next, prev] [key, next, prev] ---> [key, next, prev] --->> .... --->> [key, next, prev] next= null
// | ^ ^
// | | |
// -------------------
// +------------+
/// 1 2 3 4 5 6 7
// -------------> print
@thinkphp
thinkphp / dll.c
Last active October 19, 2026 08:17
DLL_version2
// Doubly Linked List
// list->first->prev = NEWNODE
// NEWNODE[key, next, prev] [key, next, prev] ---> [key, next, prev] --->> .... --->> [key, next, prev] next= null
// | ^ ^
// | | |
// -------------------
// +------------+
/// 1 2 3 4 5 6 7
// -------------> print
@thinkphp
thinkphp / router-readme.md
Created October 17, 2026 07:59
router-readme.md

MyBank ( React Router )

A small, beginner-friendly banking dashboard built with React and React Router. It demonstrates how navigation links connect to page components without reloading the app.

The interface includes a home page with a sample bank card and recent transactions, a user profile page, and a transactions page. All account information is fictional.

Requirements

  • Node.js and npm
import { BrowserRouter, NavLink, Route, Routes } from 'react-router-dom';
import './App.css';
const transactions = [
{ name: 'Central Coffee', date: 'Today, 10:42 AM', amount: '-18.50 RON', icon: '☕' },
{ name: 'Salary', date: 'Yesterday, 9:15 AM', amount: '+4,500.00 RON', icon: '↙', income: true },
{ name: 'City Bookstore', date: 'October 12', amount: '-76.00 RON', icon: '▤' },
];
function Home() {
@thinkphp
thinkphp / react-tip-calculator-readme.md
Created October 17, 2026 06:54
tip calculator readme.md

SPLITTER ( Tip Calculator App )

A modern, responsive, and interactive tip and bill-splitting calculator built with React and Vite. This application simplifies group dining and bill management by accurately computing individual tip amounts and total payments in real-time.


Overview

The SPLITTER Tip Calculator is designed to provide a fast and intuitive experience for calculating tips and splitting restaurant or service bills among friends, colleagues, or family members. As inputs are entered, all calculations update immediately with zero delay.