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

데브 매칭 2022 #40

Open
gongdongho12 opened this issue Jul 16, 2022 · 1 comment
Open

데브 매칭 2022 #40

gongdongho12 opened this issue Jul 16, 2022 · 1 comment

Comments

@gongdongho12
Copy link
Member

fun main(args: Array<String>) {
    val s = Solution()
//    println(s.solution(intArrayOf(3, 2, 3, 6, 4, 5)))
//    println(s.solution(intArrayOf(1, 1, 1, 1, 1)))
//    println(s.solution(intArrayOf(1, 2, 1, 3, 1)))
    println(s.solution(intArrayOf(1, 2, 2, 3, 1)))
}
@gongdongho12
Copy link
Member Author

fun main() {
    val s = Solution2()
    println(s.solution(4, true).map { it.contentToString() }.joinToString("\n"))
    println()
    println(s.solution(5, false).map { it.contentToString() }.joinToString("\n"))
}

class Solution2 {
    fun solution(n: Int, horizontal: Boolean): Array<IntArray> {
        return arrayOf(IntArrayOf())
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant