// Program sortare prin interclasare. Datele se gasesc in fisierul SIR.DAT #include<stdio.h> #include<conio.h> #define N 100 void Interclasare(int a, int…
Read More

// Program sortare prin interclasare. Datele se gasesc in fisierul SIR.DAT #include<stdio.h> #include<conio.h> #define N 100 void Interclasare(int a, int…
Read More
In algebra, a quadratic equation (from the Latin quadratus for “square“) is any equation that can be rearranged in standard…
Read More
HEADER FILE class Fractie { public: int numarator,numitor; public: Fractie(int numarator=0,int numitor=1); Fractie Suma(Fractie,Fractie); Fractie Diferenta(Fractie, Fractie); Fractie Produs(Fractie, Fractie);…
Read More
Graham’s scan is a method of finding the convex hull of a finite set of points in the plane with…
Read More
Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that…
Read More
To determine connected components we use the method of access depth of a graph. Algorithm steps are: -P1: Is seeking…
Read More
#include<stdio.h> #include<conio.h> int a,i,j,k,n,l; void main() { printf("Gradul polinomului<20:");scanf("%d",&n); for(i=0;i<=n;i=i+1) { printf("a(%d)=",i);scanf("%d",&a); } printf("Se deriveaza de :");scanf("%d",&k); for(j=0;j<k;j++) { a=0;…
Read More
In mathematics, the Euclidean algorithm, or Euclid’s algorithm, is an efficient method for computing the greatest common divisor (GCD) of…
Read More
Queue is an abstract data structure, somewhat similar to Stacks. Unlike stacks, a queue is open at both its ends.…
Read More
We will use the term to mean that a painting long = length the longest substring starting position ascending i.If…
Read More
#include <stdio.h> #include <stdlib.h> #include <conio.h> static char digit_hexa = "0123456789ABCDEF"; static char digit_decimal = "0123456789"; static char digit_octa =…
Read More
Check equality of two strings #include <stdio.h> #include <string.h> #define TRUE 1 #define FALSE 0 #define MAX 100 int egal(char*…
Read More
Quicksort (sometimes called partition-exchange sort) is an efficient sorting algorithm, serving as a systematic method for placing the elements of…
Read More
Check if the current node is empty / null Traverse the left subtree by recursively calling the post-order function. Traverse…
Read More
Check if the current node is empty / null Display the data part of the root (or current node). Traverse…
Read More
Greedy algorithm is an algorithmic paradigm that follows the problem solving heuristic of making the locally optimal choice at each…
Read More
In mathematics, and more specifically in graph theory, a tree is an undirected graph in which any two vertices are…
Read More
In the simplest case, shown in the first picture, we are given a finite set of points {p1, …, pn}…
Read More
//Calculul determinantilor cu metoda condensarii pivotale #include <conio.h> #include <iostream> #include <math.h> #include <stdlib.h> using namespace std; double a,b,c; int…
Read More
Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to…
Read More
Towers of Hanoi problem – Method Divide et impera BRIEF three rods A, B, C being located in the rod…
Read More
List with students: #include <stdio.h> #include <string.h> #include <malloc.h> #include <ctype.h> #include <conio.h> typedef struct elev{ char* nume; char* prenume;…
Read More
// Afisarea a doua multimi #include<stdio.h> #include<conio.h> void main(void) { int a,b,i,j,n,m ; char c='f'; clrscr(); printf("Nr de elemente din…
Read More
An algortithm with apartments persons repartisation: #define _CRT_SECURE_NO_DEPRECATE #include<stdio.h> #include<values.h> #define MAX_APART 20 int n; //nr persoane int pref;//preferinta pers…
Read More