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
class bst: | |
def __init__(self, k, v): | |
self.left = None | |
self.right = None | |
self.v = v | |
self.k = k | |
self.size = 1 | |
def __str__(self): | |
# for debugging only |
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.awt.Point; | |
import java.awt.geom.Point2D; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class TravellingSalesman { | |
public static void main(String[] args) throws NumberFormatException, IOException { | |
BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); | |
NewerOlder