Skip to content

Instantly share code, notes, and snippets.

View manoelf's full-sized avatar
🎯
Focusing

Manoel Ferreira manoelf

🎯
Focusing
View GitHub Profile
package adt.bst;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
package adt.bst;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
lista2.insertFirst(4);
lista2.insertFirst(3);
lista2.insertFirst(2);
lista2.insertFirst(1);
lista2.insertFirst(0);
Assert.assertArrayEquals(new Integer[] { 0, 1, 2, 3, 4 }, lista2.toArray());
lista2.remove(0);
package adt.linkedList;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class BritoTeste extends StudentLinkedListTest{
private DoubleLinkedList<Integer> lista1;
private DoubleLinkedList<Integer> lista2;
package adt.bst;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
package adt.avltree;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Before;
import org.junit.Test;
import adt.bst.BSTNode;
@manoelf
manoelf / B.java
Created September 28, 2016 06:08
@Override
public void insert(T element) {
if (element != null) {
BNode<T> node = search(element).node;
if (node != null) {
insert(node, element);
}
}
}
adj = {}
w = {}
Q = set()
S = []
def populate_w(v1, v2, f):
w[(v1, v2)] = f