Skip to content

Instantly share code, notes, and snippets.

@JunJaBoy
JunJaBoy / 미분공식.txt
Created March 20, 2026 01:33
여러 가지 미분 공식 Anki Deck
\(y = c\) \(y' = 0\)<br><br>조건: \(x∈ℝ\)<br><br>증명: \(\frac{c-c}{h}=0\)
\(y = x^n\) \(y' = nx^{n-1}\)<br><br>조건: \(n∈ℝ\) (일반적으로 \(x>0\))<br><br>증명: 이항정리
\(y = f(x)g(x)\) \(y' = f'g + fg'\)<br><br>조건: 미분가능<br><br>증명: 정의 전개
\(y = \frac{g(x)}{f(x)}\) \(y' = \frac{g'f - gf'}{f^2}\)<br><br>조건: \(f≠0\)<br><br>증명: 곱미분 활용
\(y = \sin x\) \(y' = \cos x\)<br><br>조건: \(ℝ\)<br><br>증명: \(\lim \frac{\sin h}{h}=1\)
\(y = \cos x\) \(y' = -\sin x\)<br><br>조건: \(ℝ\)<br><br>증명: 삼각항등식
\(y = \tan x\) \(y' = \sec^2 x\)<br><br>조건: \(x≠\frac{\pi}{2}+k\pi\)<br><br>증명: 몫미분
\(y = \cot x\) \(y' = -\csc^2 x\)<br><br>조건: \(x≠k\pi\)<br><br>증명: 몫미분
\(y = \sec x\) \(y' = \sec x\tan x\)<br><br>조건: \(\cos x≠0\)<br><br>증명: 역수미분
\(y = \csc x\) \(y' = -\csc x\cot x\)<br><br>조건: \(\sin x≠0\)<br><br>증명: 역수미분
@JunJaBoy
JunJaBoy / markdown-syntax.md
Created June 22, 2025 06:17 — forked from mufid/markdown-syntax.md
Markdown Syntax
@JunJaBoy
JunJaBoy / SmoothCorner.kt
Last active January 23, 2025 08:49
Smooth Corners
package com.example.app.shape
import kotlin.math.cos
import kotlin.math.min
import kotlin.math.sin
import kotlin.math.sqrt
import kotlin.math.tan
internal class SmoothCorner(
private val cornerRadius: Float,
void withIf() {
Map<int, void> items = {
1: (),
2: (),
3: (),
4: (),
5: (),
};
items.forEach(
@JunJaBoy
JunJaBoy / JesseAndCookies2.kt
Created April 29, 2024 07:31
HackerRank/Algorithm/JesseAndCookies kotlin2
import java.util.*
import kotlin.*
import kotlin.collections.*
private fun List<Int>.sweetenCookies(targetSweetness: Int): Int {
val heap = PriorityQueue(this)
var count = 0
while (heap.size > 1 && heap.peek() <= targetSweetness) {
val first = heap.poll()
@JunJaBoy
JunJaBoy / IsPrime.kt
Created April 28, 2024 06:03
Best way to check if the number is prime
val Int.isPrime: Boolean
get() {
if (this <= 1) return false
for (i in 2..<this) {
if (this % i == 0) return false
}
return true
}
@JunJaBoy
JunJaBoy / JesseAndCookies.kt
Created April 27, 2024 13:18
HackerRank/Algorithm/JesseAndCookies kotlin
import java.util.*
import kotlin.*
import kotlin.collections.*
private fun cookies(
sweetness: Int,
cookies: Array<Int>,
): Int {
val result = PriorityQueue<Int>().apply { addAll(cookies) }
var countOfIteration = 0
@JunJaBoy
JunJaBoy / SimpleTextEditor.kt
Created April 27, 2024 04:55
HackerRank/Algorithm/SimpleTextEditor kotlin
import java.util.*
class TextEditor(initialValue: String = "") {
private val operationHistory = Stack<String>().apply { push(initialValue) }
val value: String
get() = operationHistory.peek()
fun append(text: String) {
operationHistory.push(operationHistory.peek() + text)
@JunJaBoy
JunJaBoy / BalancedBrackets.kt
Created April 26, 2024 14:00
HackerRank/Algorithm/BalancedBrackets kotlin
import java.util.*
const val RESULT_YES = "YES"
const val RESULT_NO = "NO"
fun isBalanced(s: String): String {
val stack = Stack<Char>()
s.forEach { char ->
when (char) {
'[' -> stack.push(']')
@JunJaBoy
JunJaBoy / QueueUsingTwoStacks.kt
Created April 26, 2024 13:28
HackerRank/Algorithm/QueueUsingTwoStacks kotlin
import java.util.*
const val QUEUE_ENQUEUE = 1
const val QUEUE_DEQUEUE = 2
const val QUEUE_PRINT_HEAD = 3
fun queueUsingTwoStacks(
numberOfQueues: Int,
scanner: Scanner = Scanner(System.`in`),
) {