This file contains 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 com.github.coderodde.game.connect4.benchmark; | |
import com.github.coderodde.game.connect4.ConnectFourBoard; | |
import com.github.coderodde.game.connect4.ConnectFourHeuristicFunction; | |
import com.github.coderodde.game.zerosum.impl.AlphaBetaPruningSearchEngine; | |
import com.github.coderodde.game.zerosum.impl.ConnectFourAlphaBetaPruningSearchEngine; | |
public class ConnectFourSearchEngineComparison { | |
private static final int DEPTH = 9; |
This file contains 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 fi.helsinki.cs.rodionef.msc; | |
import com.github.coderodde.util.IndexedLinkedList; | |
import java.util.Map; | |
import java.util.TreeMap; | |
import java.util.concurrent.ConcurrentSkipListMap; | |
public class IndexListVsSkipListComparison { | |
private static long durationTm = 0L; |
This file contains 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 fi.helsinki.cs.rodionef; | |
import com.github.coderodde.util.SkipListMap; | |
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.TreeMap; | |
import java.util.concurrent.ConcurrentSkipListMap; |
This file contains 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
2024-5-13 (ma): | |
1. 17 päivää sitten luvattu käynti kaupungilla kariutui tunti/pari ennen sovittua lähtöä. Syy: saatava hoitaja oli sairastunut. Henkilökunta voivotteli ja pesi kätensä: sijaista ei löytynyt edes nk. poolista. | |
2024-5-15 (ke): | |
1. Hoitaja Ari kutsui tarkoituksella minua nimellä, joka ei ole minun. | |
2024-5-19 (su): | |
1. Kysyin hoitajaa Timoa antamaan minulle puhelimeni ja kannettavani latauskaapista, johon hän vastasi, että "kestää hetken". Hänyellä oli siviilipuhelin kädessään, ja hän kirjoitti noin 4 minuuttia sillä ennen kuin suostui avaamaan latauskaapin. | |
2024, kesäkuun loppu: |
This file contains 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
type Matrix = list[list[int]] | |
""" | |
This class is responsible for generating snail matrices of dimensions n * n. | |
""" | |
class SnailMatrixGenerator: | |
""" | |
Constructs this generator. | |
""" |
This file contains 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
namespace CR.PriorityQueues | |
{ | |
class CoderoddeBinaryHeap<TElement, TPriority> : PriorityQueue<TElement, TPriority> | |
where TElement : notnull | |
where TPriority : notnull | |
{ | |
private static readonly int INITIAL_CAPACITY = 16; | |
private class HeapNode<Element, Priority> where Element : notnull where Priority : notnull | |
{ |
This file contains 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; | |
public class DemoRepl { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
DynamicTableStack array = new DynamicTableStack(3, 3); | |
while (true) { | |
try { |
This file contains 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
from itertools import combinations | |
import time | |
def millis(): | |
return round(1000 * time.time()) | |
def powerset(iterable): | |
s = list(iterable) |
This file contains 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
int, double (ret_int, ret_double) my_foo(a, b, c): | |
if specified a: | |
print "a" | |
if specified b: | |
print "b" | |
if specified c: | |
print "c" | |
if is_requested ret_int: | |
print "int on return requested" | |
if is_requested ret_double: |
This file contains 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
# ... | |
alias ds='source ds.sh' | |
# ... |
NewerOlder