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
class Solution { | |
fun twoSum(nums: IntArray, target: Int): IntArray { | |
val numberToIndexesMap = createNumberToIndexesMap(nums, target) | |
// Iterate through each entry | |
for (currEntry in numberToIndexesMap.entries) { | |
// Subtract it from the target | |
val nextValues = numberToIndexesMap[target - currEntry.key] | |
if (nextValues == null || nextValues.isEmpty()) { | |
continue |
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
Show hidden characters
{ | |
"plugins": ["@babel/plugin-syntax-dynamic-import"], | |
"env": { | |
"test": { | |
"plugins": ["dynamic-import-node"], | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"modules": "commonjs", |
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
Reference Handler id=2 state=WAITING | |
- waiting on <0x5798e454> (a java.lang.ref.Reference$Lock) | |
- locked <0x5798e454> (a java.lang.ref.Reference$Lock) | |
at java.lang.Object.wait(Native Method) | |
at java.lang.Object.wait(Object.java:502) | |
at java.lang.ref.Reference.tryHandlePending(Reference.java:191) | |
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153) | |
Finalizer id=3 state=WAITING | |
- waiting on <0x230ea8c8> (a java.lang.ref.ReferenceQueue$Lock) |
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
openapi: 3.0.1 | |
info: | |
title: swagger-server | |
description: My API | |
license: | |
name: Apache 2.0 | |
version: "0.1" | |
paths: | |
/lineupcacheservice/cache/clear/{type}: | |
delete: |
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
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>micronaut.ribbon.example2</groupId> | |
<artifactId>micronaut-ribbon-example2</artifactId> | |
<version>0.1</version> | |
<properties> | |
<exec.mainClass>micronaut.ribbon.example2.Application</exec.mainClass> | |
<micronaut.version>1.0.0.RC1</micronaut.version> | |
<jdk.version>1.8</jdk.version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
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.charter.aesd.activationlogin.edge.service | |
import com.charter.aesd.hystrix.utils.aws.CommandBuilderFactory | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import groovy.json.JsonSlurper | |
import groovy.transform.ToString | |
/** | |
* Created by rhasija on 1/20/16. | |
*/ |
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.charter.aesd.activationlogin.edge.rest | |
import groovy.json.JsonBuilder | |
import groovy.json.JsonSlurper | |
import groovy.transform.ToString | |
/** | |
* Created by rhasija on 1/15/16. | |
*/ | |
class JsonToObject { |
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.charter.aesd.activationlogin.edge.service | |
import rx.Observable | |
import rx.functions.Func1 | |
import rx.functions.Func3 | |
/** | |
* Created by rhasija on 1/14/16. | |
*/ | |
class ObsTest { |
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.charter.aesd.activationlogin.edge.service | |
import rx.Observable | |
import rx.functions.Func1 | |
import rx.functions.Func3 | |
/** | |
* Created by rhasija on 1/14/16. | |
*/ | |
class ObsTest { |
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.charter.aesd.account.core.query; | |
import com.charter.aesd.device.domain.Device; | |
import org.apache.commons.collections.CollectionUtils; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; |
NewerOlder