Skip to content

Instantly share code, notes, and snippets.

@valkiie
valkiie / LilyHomework.java
Created May 2, 2022 07:44
Lily's Homework HackerRank
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@valkiie
valkiie / somepolygons.json
Last active February 18, 2022 04:32
somepolygons.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@valkiie
valkiie / SimpleBot.java
Last active June 13, 2020 05:47
JetBrains Academy. simple-chatty-bot
package bot;
import java.util.Scanner;
public class SimpleBot {
final static Scanner scanner = new Scanner(System.in); // Do not change this line
public static void main(String[] args) {
greet("Cookie", "2020"); // change it as you need
remindName();
public decode(encoded, index){
let b, result=0, shift=0
do {
b = encoded.charCodeAt(index++) - 63;
result |= (b & 0x1f) << shift;
shift += 5;
} while (b >= 0x20);
return [result,index]
}
public decodePath(encoded, is3D){