Skip to content

Instantly share code, notes, and snippets.

View NatKarmios's full-sized avatar
⚗️
Research engineering at Imperial College

Nat Karmios NatKarmios

⚗️
Research engineering at Imperial College
View GitHub Profile
package com.karmios.nat.computingwork.paper1.fundamentals_of_data_structures.mid_term_test.oop;
@SuppressWarnings({"WeakerAccess", "unused"})
public class Course {
private String name;
private Teacher teacher;
public Course(String name, Teacher teacher) {
this.name = name;
this.teacher = teacher;
@NatKarmios
NatKarmios / kruskal.md
Last active September 7, 2016 20:59
Kruskal's Algorithm, Implemented in Python

Output of kruskal(graphExamples["1a"], print_result=True):

EG: 13
AC: 15
AB: 18
DE: 19
BE: 21
FG: 27

Tree total: 113

@NatKarmios
NatKarmios / InductionTasks_Section2_Task1_Code.java
Created August 27, 2016 20:39
Year 12 Induction Tasks for Computer Science at Twyford. [By Nat Karmios]
package com.karmios.nat.ComputingWork.InductionTasks.Section2.Task1;
import java.util.Scanner;
public class Code {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
// Prompt the user to enter their weight in pounds