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 <time.h> | |
| // Lista cykliczna | |
| using namespace std; | |
| struct list_el | |
| { | |
| int key; | |
| list_el *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 <time.h> | |
| using namespace std; | |
| struct list_el | |
| { | |
| int key; | |
| list_el *next; | |
| list_el *prev; |
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 <time.h> | |
| using namespace std; | |
| struct list_el | |
| { | |
| int key; | |
| list_el *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 <time.h> | |
| using namespace std; | |
| struct tree{ | |
| int key; | |
| tree *left, *right; | |
| }; | |
| tree *root; | |
| class Binary_tree{ |
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<time.h> | |
| #include<math.h> | |
| using namespace std; | |
| struct tree{ | |
| int key; | |
| int vist_c; | |
| tree *left, *right; | |
| }; | |
| tree *root; |
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<time.h> | |
| #include<math.h> | |
| using namespace std; | |
| struct tree{ | |
| int key; | |
| tree *left, *right; | |
| }; | |
| tree *root; | |
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<time.h> | |
| #include<vector> | |
| using namespace std; | |
| int n; | |
| struct drzewo{ | |
| int key,balance; |
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<time.h> | |
| using namespace std; | |
| struct avl_node | |
| { | |
| avl_node *left, *right, *p; | |
| int key, bf; | |
| }; | |
| class AVL |
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
| #!/usr/bin/ruby | |
| require 'timeout' | |
| class Sandbox | |
| def initialize(tar, time) | |
| @tar = tar | |
| @time = time | |
| @path = get_main_folder_name | |
| @app_map = { |
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
| require 'Benchmark' | |
| class Sudoku | |
| attr_accessor :puzzle | |
| def initialize | |
| @puzzle = '' | |
| @game = Array.new(9) | |
| @game.map! { Array.new(9) } | |
| 9.times do |i| |