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
# if running inside VirtualBox on a shared folder | |
# you must enable symlinks on the shared folder | |
$ VBoxManage setextradata "<vm name>" VBoxInternal2/SharedFoldersEnableSymlinksCreate/<shared folder> 1 | |
# verify with | |
$ VBoxManage getextradata "<vm name>" enumerate |
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 OpenAdressing { | |
private int length; | |
private int[] result; | |
private int c1, c2; | |
private String method; | |
OpenAdressing(int length){ | |
this.length = length; | |
result = new int[length]; | |
this.method = "linear"; | |
arrayIni(); |
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 LinkCollision { | |
private ArrayList<Integer>[] result; | |
private int length; | |
private double hashWay; | |
LinkCollision(int length, double hashWay){ | |
this.length = length; | |
this.hashWay = hashWay; | |
this.result = new ArrayList[length]; | |
resultIn(); | |
} |
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 Sort { | |
private int[] A; | |
private int[] B; | |
private int[] C; | |
private int k; | |
public Sort(int[] array, int k){ | |
this.B = this.countingSort(array,k); | |
} | |
private int[] countingSort(int[] a, int k) { | |
int c[] = new int[k]; |
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 Radix { | |
private int[] array = new int[11]; | |
public Radix(int[] array){ | |
sort(array); | |
} | |
private void sort( int[] a) | |
{ | |
int i, m = a[0], exp = 1, n = a.length; | |
// int[] b = new int[10]; | |
for (i = 1; i < n; i++) |
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
package web.cheff; | |
import java.util.Random; | |
/** | |
* Created by yura on 30.03.16. | |
*/ | |
public class Sort { | |
private int[] sorted; | |
private int found; |
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 MergeSort { | |
private int[] data; | |
private void merge(int arr[], int l, int m, int r) { | |
int n1 = m - l + 1; | |
int n2 = r - m; | |
int L[] = new int[n1]; | |
int R[] = new int[n2]; |
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 Sort { | |
private int[] a; | |
private int n; | |
private int left; | |
private int right; | |
private int largest; | |
Sort(int[] array){ | |
sort(array); | |
} |
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
<VirtualHost *:80> | |
ServerName selfiecam.in.ua | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/domain | |
<Directory /var/www/domain/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all |
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 Link { | |
public String value; | |
public int index; | |
public Link next; | |
public SampleForm form; | |
public Link(String value, int index){ | |
this.value = value; | |
this.index = index; | |
} |