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
| "SELECT * FROM Countries WHERE country_name = '" + input_python + "'" | |
| WHERE country_name = '' OR '1' = '1' returneaza toate randurile | |
| input_python " Portugalia'; DROP TABLE Countries" | |
| O aplicatie are un formular de cautare a unei tari , iar codul din spate python | |
| country = request.form['country'];//vine direct de la utilizator , netratat |
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. Creaza tabelul FARA chk_medal_recipient | |
| CREATE TABLE Tournament_Medals ( | |
| Tournament_Medals_ID INT AUTO_INCREMENT, | |
| Tournament_ID INT NOT NULL, | |
| Sport_ID INT NOT NULL, | |
| Category_ID INT NOT NULL, | |
| Team_ID INT NULL, | |
| Player_ID INT NULL, | |
| Medal_Type ENUM('Gold','Silver','Bronze') NOT NULL, |
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.*; | |
| import java.util.*; | |
| class GraphAdjLinkedList { | |
| private static class Node { | |
| int vecin; | |
| Node urmator; |
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.Scanner; | |
| /* | |
| 0 1 | |
| liste de adiacenta: | |
| cap[] | |
| 1: 2, 3 cap[1] | |
| 2: 1, 5,4 cap[2] | |
| 3: 1, 5 cap[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.*; | |
| 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
| import java.io.*; | |
| import java.util.*; | |
| class GraphAdjMatrix { | |
| private int[][] mat; | |
| private boolean[] vizitat; | |
| private int n; | |
| public GraphAdjMatrix(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
| public class DoublyLinkedList { | |
| static class Node { | |
| int data; | |
| Node next; | |
| Node prev; | |
| Node(int data) { | |
| this.data = data; |
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
| /* | |
| LRU Cache capacitate 5 | |
| MostRecently U Least Recenty Used | |
| HEAD(-1) 9 <-> 10 <-> 1 <-> 5 <-> 2(-1)TAIL | |
| Put(5) | |
| get(1) |
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
| https://web.stanford.edu/class/cs97si/06-basic-graph-algorithms.pdf | |
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 <stdio.h> | |
| #define MAX 105 | |
| #define FIN "royfloyd.in" | |
| #define FOUT "royfloyd.out" | |
| //function prototypes | |
| void read(); | |
| void RoyFloyd(); | |
| void write(); |