Skip to content

Instantly share code, notes, and snippets.

View pedrofurtado's full-sized avatar
🤓
👍

Pedro Furtado pedrofurtado

🤓
👍
View GitHub Profile
@pedrofurtado
pedrofurtado / cloudSettings
Last active January 27, 2024 00:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2024-01-27T00:29:37.145Z","extensionVersion":"v3.4.3"}
@pedrofurtado
pedrofurtado / QuickSort.java
Created January 3, 2016 16:34
Implementation of Quick Sort in Java.
/**
* @file
* Quick sort class.
*/
public class QuickSort {
/**
* Printing vector method.
@pedrofurtado
pedrofurtado / MergeSort.java
Created January 3, 2016 16:33
Implementation of Merge Sort in Java.
/**
* @file
* Merge sort class.
*/
public class MergeSort {
/**
* Printing vector method.
@pedrofurtado
pedrofurtado / InsertionSort.java
Created January 3, 2016 16:32
Implementation of Insertion Sort in Java.
/**
* @file
* Insertion sort class.
*/
public class InsertionSort {
/**
* Printing vector method.
@pedrofurtado
pedrofurtado / BubbleSort.java
Created January 3, 2016 16:31
Implementation of BubbleSort in Java.
/**
* @file
* Bubble sort class.
*/
public class BubbleSort {
/**
* Printing vector method.
*
@pedrofurtado
pedrofurtado / SinglyLinkedList.java
Created January 3, 2016 16:24
Implementation of Singly Linked List in Java.
/**
* @file
* Singly linked list.
*/
public class SinglyLinkedList {
public int key;
public SinglyLinkedList next;
@pedrofurtado
pedrofurtado / HashTableOpenAddressing.java
Created January 3, 2016 16:23
Implementation of Hash Table (with Open Addressing) in Java.
/**
* @file
* Hash table with open adressing.
*
* @author Pedro Furtado
*/
public class HashTableOpenAddressing {
/**
@pedrofurtado
pedrofurtado / StackVector.java
Created January 3, 2016 16:20
Implementation of Stack (in vector) in Java
/**
* @file
* Stack.
*
* Implementation with vector.
* It's used nested class to improve encapsulation.
*
* @author Pedro Furtado
*/
@pedrofurtado
pedrofurtado / Stack.java
Last active January 3, 2016 16:25
Implementation of Stack in Java
/**
* @file
* Stack.
*
* Implementation with singly linked list, through the nested class StackNode.
* It's used nested class to improve encapsulation.
*
* @author Pedro Furtado
*/
@pedrofurtado
pedrofurtado / SparseMatrix.java
Created January 3, 2016 16:18
Implementation of Sparse Matrix in Java
/**
* @file
* Sparse matrix.
*
* Implementation with singly linked list, through the nested class SparseMatrixNode.
* It's used nested class to improve encapsulation.
*
* @author Pedro Furtado
*/