Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change package name #341

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P01 {
def last[T](list: List[T]): T =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P02 {
def penultimate[T](list: List[T]): T =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P03 {
def nth[T](index: Int, list: List[T]): T =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import scala.annotation.tailrec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import scala.annotation.tailrec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import P05.reverse

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P07 {
def flatten(list: List[Any]): List[Any] =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P08 {
def compress[T](list: List[T]): List[T] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P09 {
def pack[T](list: List[T]): List[List[T]] =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import P04.length
import P05.reverse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.map
import P04.length
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.flatMap
import Util.copyN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P13 {
def encodeDirect[T](list: List[T]): List[(Int, T)] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.flatMap

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.flatMap
import Util.copyN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P16 {
def drop[T](nth: Int, list: List[T]): List[T] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P17 {
def split[T](n: Int, list: List[T]): (List[T], List[T]) =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P18 {
def slice[T](i: Int, k: Int, list: List[T]): List[T] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import P05.reverse
import Util.append
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P20 {
def removeAt[T](nth: Int, list: List[T]): (List[T], T) =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P21 {
def insertAt[T](e: T, index: Int, list: List[T]): List[T] =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P22 {
def range(from: Int, to: Int): List[Int] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import P04.length
import P20.removeAt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import P22.range
import P23.randomSelect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import P04.length
import P23.randomSelect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.append
import Util.map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.flatMap
import Util.map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.flatMap
import Util.map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.map
import Util.split
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import Util.map
import Util.foldLeft
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P31 {
implicit class RichInt(self: Int) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P32 {
def gcd(x: Int, y: Int): Int = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P33 {
implicit class RichInt(self: Int) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P46 {
def and(x: Boolean, y: Boolean): Boolean = x & y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P47 {
implicit class RichBoolean(val self: Boolean) extends AnyVal {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import scala.collection.mutable

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package jp.co.dwango.s99
import jp.co.dwango.s99.binary_trees._
package s99
import s99.binary_trees._

object P55 {
object Tree {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package jp.co.dwango.s99
import jp.co.dwango.s99.binary_trees._
package s99
import s99.binary_trees._

object P56 {
implicit class RichTree[T](val tree: Tree[T]) extends AnyVal {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package jp.co.dwango.s99
package s99

import jp.co.dwango.s99.binary_trees.Tree
import jp.co.dwango.s99.binary_trees.Node
import jp.co.dwango.s99.binary_trees.End
import s99.binary_trees.Tree
import s99.binary_trees.Node
import s99.binary_trees.End

object P57 {
implicit class RichTree[T](self: Tree[T]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package jp.co.dwango.s99
package s99

import jp.co.dwango.s99.binary_trees.{Tree}
import s99.binary_trees.{Tree}
import P56._

object P58 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99
import binary_trees._

object P61 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99
import binary_trees._

import scala.annotation.tailrec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99
import binary_trees._

object P62 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99
import binary_trees._

object P62b {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99
import binary_trees._

object P67 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package jp.co.dwango.s99
package s99

import jp.co.dwango.s99.binary_trees._
import s99.binary_trees._

object P68 {
implicit class RichTree[T](tree: Tree[T]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import scala.collection.mutable.ListBuffer

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object P96 {
/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

object Util {
def append[T](a: List[T], b: List[T]): List[T] =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import P10.encode

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99.binary_trees
package s99.binary_trees

sealed abstract class Tree[+T]
case class Node[+T](value: T, left: Tree[T], right: Tree[T]) extends Tree[T] {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalacheck.Properties
import org.scalacheck.Prop.{forAll, propBoolean}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalatest.funspec.AnyFunSpec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalacheck.Properties
import org.scalacheck.Prop.{forAll, propBoolean}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalatest.funspec.AnyFunSpec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalacheck.{Arbitrary, Gen, Prop, Properties}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalatest.funspec.AnyFunSpec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalacheck.Properties
import org.scalacheck.Prop.forAll
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalatest.funspec.AnyFunSpec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalacheck.Properties
import org.scalacheck.Prop.forAll
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalatest.funspec.AnyFunSpec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalacheck.{Gen, Properties}
import Gen.listOf, Gen.chooseNum
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package jp.co.dwango.s99
package s99

import org.scalatest.funspec.AnyFunSpec

Expand Down
Loading