This file contains 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 edu.princeton.cs.algs4.Point2D; | |
import edu.princeton.cs.algs4.RectHV; | |
import edu.princeton.cs.algs4.StdDraw; | |
import java.awt.Color; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class KdTree { | |
private TreeNode root; |
This file contains 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 turtle | |
import random | |
t = turtle.Pen() | |
def my_circle(red, green, blue): | |
t.color(red, green, blue) | |
t.begin_fill() | |
t.circle(15) |
This file contains 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
package com.papenko.imgresizing; | |
import org.imgscalr.Scalr; | |
import javax.imageio.ImageIO; | |
import java.awt.image.BufferedImage; | |
import java.io.*; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.HashMap; |