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> | |
#include <stdlib.h> | |
int main(void) { | |
setvbuf(stdout,NULL,_IONBF,0); | |
setvbuf(stderr,NULL,_IONBF,0); | |
int frequencies[26] = {}, n; | |
char alphabet[26] = "abcdefghijklmnopqrstuvwxyz"; |
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> | |
#include <stdlib.h> | |
#include <math.h> | |
int some_func(double, double *); | |
int main(void) { | |
setvbuf(stdout,NULL,_IONBF,0); | |
setvbuf(stderr,NULL,_IONBF,0); |
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
Arsenal 6 0 Sunderland | |
Fulham 5 0 Norwich | |
Newcastle 2 1 Spurs | |
QPR 0 5 Swansea | |
Reading 1 1 Stoke | |
WBA 3 0 Liverpool | |
WestHam 1 0 Villa | |
ManchesterCity 3 1 QPR | |
Swansea 2 2 Sunderland | |
Spurs 1 1 Norwich |
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 multithreading; | |
import java.util.Scanner; | |
/** | |
* @author kalkis | |
* | |
*/ | |
public class GuessControl { |
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 practical5; | |
import static org.junit.Assert.*; | |
import org.junit.Before; | |
import org.junit.Test; |
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 practical5; | |
import java.util.Arrays; | |
/** | |
* @author kalkis | |
* exercises in solving problems using recursion |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Mar 17 20:29:33 2017 | |
@author: kalkis | |
""" | |
import random | |
def roll_die(n, dn): |
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
/** | |
* corresponds to class's location in src folder | |
*/ | |
package practicals.week3; | |
import static org.junit.Assert.*; | |
import java.io.ByteArrayOutputStream; | |
import java.io.OutputStream; | |
import java.io.PrintStream; |
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 practicals.week3; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
/** |