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
package searchpattern | |
import scala.annotation.tailrec | |
/** | |
* ZIndex String Pattern Search | |
* inspired from https://www.youtube.com/watch?v=CpZh4eF8QBw | |
* Created by Arun Sethia on 6/6/18. | |
*/ |
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
package linkedlist | |
sealed trait AbstractCons[+A] { | |
def value: A | |
def next: AbstractCons[A] | |
} | |
/** |
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 akka.NotUsed | |
import akka.http.scaladsl.common.{EntityStreamingSupport, JsonEntityStreamingSupport} | |
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport | |
import akka.http.scaladsl.model.headers.Accept | |
import akka.http.scaladsl.model.{MediaRange, MediaTypes} | |
import akka.http.scaladsl.server.{Directives, Route} | |
import akka.http.scaladsl.testkit.ScalatestRouteTest | |
import akka.stream.scaladsl.Source | |
import org.scalatest.{Matchers, WordSpec, WordSpecLike} | |
import spray.json.DefaultJsonProtocol |
NewerOlder