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
import os | |
import shutil | |
def find_top_level_folders(base_path, target_names): | |
matches = [] | |
for root, dirs, _ in os.walk(base_path, topdown=True): | |
for d in dirs: | |
if d in target_names: | |
folder_path = os.path.join(root, d) |
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
import java.util.Scanner; | |
public class DatabaseMahasiswa { | |
static int jumlahData = 0; | |
static final int MAX_DATA = 5; | |
static Scanner input = new Scanner(System.in); | |
static SingleLinkedList<Mahasiswa> daftarMahasiswa = new SingleLinkedList<>(); | |
public static void main(String[] args) { |
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
import java.util.*; | |
public class Comparison { | |
private static void runScenario(int scenarioNumber, String scenarioName, int size, | |
ArrayList<ExecutionRecord> records) { | |
/************************************************** | |
* S C E N A R I O # X (Parameter) * | |
**************************************************/ |
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
import java.util.Scanner; | |
public class RestaurantQueue { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
Queue antrian = new Queue(); | |
System.out.println("Antrian saat ini:"); |