Skip to content

Instantly share code, notes, and snippets.

Avatar

Konstantin Läufer klaeufer

View GitHub Profile
@klaeufer
klaeufer / lab10.jsh
Last active Apr 22, 2020
Loyola COMP 271 Sample JShell History
View lab10.jsh
class BTNode<E> {
public E data;
public BTNode<E> left;
public BTNode<E> right;
public BTNode(final E data, final BTNode<E> left, final BTNode<E> right) {
if (data == null) throw new IllegalArgumentException("data is null");
this.data = data;
this.left = left;
this.right = right;
}
@klaeufer
klaeufer / README.md
Last active Mar 11, 2020
Loyola COMP 271 GitHub account creation
View README.md

Individual project

Collaborate with your classmates on a conceptual level but do not share code. Submit individually.

Learning Objectives

  • Get started with Git source code management
  • Make sure you can access the course examples on GitHub
  • Make sure you can use your development environment to modify and update your projects on GitHub
View Node.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View DiningPhilosophers.scala
import scala.util.Random
import java.util.concurrent.locks.ReentrantLock
def dinner(number: Int, delayInMs: Int) = {
val forks = Array.fill(number)(new ReentrantLock)
// warning: running each philosopher in their own explicit Java thread
def phil(i: Int) = new Thread {
override def run(): Unit = {
@klaeufer
klaeufer / README.md
Last active Mar 24, 2020
cs2-lab10-bintrees-java
View README.md

Loyola COMP 271 Lab 10

Individual project

Collaborate with your teammates but submit individually. Clearly list the members of your team.

Objectives

An understanding of the following concepts and techniques:

View quine.scala
object Q extends App { val s = "object Q extends App { val s = %c%s%c ; printf(s, 0x22, s, 0x22) }" ; printf(s, 0x22, s, 0x22) }
@klaeufer
klaeufer / README.md
Last active Sep 6, 2018
cs2-lab1-fizzbuzz-java
View README.md

Loyola COMP 271 Lab 1

Individual project

Collaborate with your classmates on a conceptual level but do not share code. Submit individually.

Objectives

An understanding of the following concepts and techniques:

@klaeufer
klaeufer / README.md
Last active Nov 29, 2018
cs2-lab10-graphs-java
View README.md

Loyola COMP 271 Lab 10 (FALL 2017)

Individual project

Collaborate with your classmates on a conceptual level but do not share code. Submit individually.

Objectives

An understanding of the following concepts and techniques:

@klaeufer
klaeufer / TODO.md
Last active Nov 6, 2018
cs2-lab7-linkedstack-recursive-java
View TODO.md

Loyola COMP 271 Lab 7

Individual project

Collaborate with your classmates on a conceptual level but do not share code. Submit individually.

Objectives

An understanding of the following concepts and techniques:

@klaeufer
klaeufer / README.md
Last active Apr 8, 2020
cs2-lab9-listnodes-java
View README.md

Loyola COMP 271 Lab 9

Individual project

Collaborate with your classmates on a conceptual level but do not share code. Submit individually.

Objectives

An understanding of the following concepts and techniques:

You can’t perform that action at this time.