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.*; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| public class Main extends JFrame implements ActionListener { | |
| int choice = 0, choice1 = 0, choice2 = 0; | |
| JFrame f1, f2; | |
| JPanel p1, p2, p3; |
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 java.util.*; | |
| public class Graf { | |
| private final int[][] mat; | |
| public final boolean[] vizitat; | |
| private final int n; |
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
| /* | |
| Grafuri | |
| ------- | |
| Graf <=> orice multime finita V, prevazuta cu o relatie binara interna E | |
| G = (V,E) | |
| V = numarul de noduri | |
| E = numarul de muchii |
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 java.io.*; | |
| public class editDistance { | |
| static void main(String[] args) { | |
| BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ; | |
| BufferedReader s = br.readLine(); | |
| BufferedReader d = br.readLine(); |
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 java.util.*; | |
| /* | |
| ------------------------------------- | |
| Edit Distance = Distanta Levenshstein | |
| ------------------------------------- | |
| Distanta Levenshtein este o masura care cuantifica cat de diferite sunt doua siruri de caractere | |
| prin numarul minim de operatii necesare ptrneu a transforma un sir in altil. |
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
| A x Point(1) | |
| B x Point(2) | |
| C x Point(3) |
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 java.util.*; | |
| /* | |
| Distanta minima dintre mai multe puncte | |
| | | |
| | x x | |
| | x | |
| | x x | |
| | x |
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
| /* | |
| 1 -> 2 -> 4 | |
| 1 -> 3 -> 4 | |
| */ | |
| class ListNode { | |
| int val; | |
| ListNone next; |
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> | |
| #include <string> | |
| #include <cstring> | |
| using namespace std; | |
| // ============================================================ | |
| // Proiect Carte de Vizita ----> Clasa de baza | |
| // ============================================================ | |
| class CarteDeVizita { | |
| protected: |
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
| /* | |
| Array = | |
| int a | |
| Data Structures | |
| --------------- | |
| Singly Linked List (Liste Simplu Inlantuite) | |
| Double Linked List (Dublu) |