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 java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
private static List<Character> openChars = new ArrayList<Character>(Arrays.asList('{', '(', '[')); | |
private static List<Character> closeChars = new ArrayList<Character>(Arrays.asList('}', ')', ']')); |
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 java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static int[] arrayLeftRotation(int[] a, int n, int k) { | |
if (k < 0) throw new RuntimeException("K needs to be greater than zero"); |
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 java.util.*; | |
public class Solution { | |
Map<String, Integer> magazineMap; | |
Map<String, Integer> noteMap; | |
public Solution(String magazine, String note) { | |
magazineMap = new HashMap<String, Integer>(); | |
noteMap = new HashMap<String, Integer>(); | |
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 java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static int numberNeeded(String first, String second) { | |
Map<Character, Integer> fmap = getCharacterMap(first); |
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
[{ | |
"name": "felipe", | |
"age": 33 | |
}, { | |
"name": "ty", | |
"age": 3 | |
}] |
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 azkaban.security; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import org.apache.commons.lang.exception.ExceptionUtils; | |
import org.joda.time.DateTime; | |
import org.joda.time.DateTimeZone; |
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
spring_profiles: postgresql | |
database: | |
driverClassName: org.postgresql.Driver | |
url: jdbc:postgresql://uaa.ccbvglwadavl.us-west-2.rds.amazonaws.com:5432:/uaa | |
username: uaa | |
password: uaauaauaa | |
jwt: | |
token: |
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
spring_profiles: postgresql | |
database: | |
driverClassName: org.postgresql.Driver | |
url: jdbc:postgresql://${DB_PORT_5432_TCP_ADDR}:${DB_PORT_5432_TCP_PORT}/${DB_ENV_DB:postgres} | |
username: ${DB_ENV_USER:postgres} | |
password: ${DB_ENV_PASS:} | |
jwt: | |
token: |
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
#!/usr/bin/python | |
import sys | |
import getopt | |
import fileinput | |
import csv | |
import json | |
import bcrypt | |
def main(argv): |
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
object Solution { | |
def solution(S: String): Int = { | |
val max = S.length / 2 | |
@scala.annotation.tailrec | |
def symmetryPoint(i: Int): Int = { | |
val left = S(i) | |
val right = S(S.length - 1 - i) |