Skip to content

Instantly share code, notes, and snippets.

View hoyeol's full-sized avatar

Sung Joon, Park hoyeol

View GitHub Profile
package com.greg82p.skeleton.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.datatype.jsr310.PackageVersion;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
DELIMITER //
CREATE PROCEDURE getFreePublicNum(
IN _TYPE tinyint(4),
IN _STATUS tinyint(4),
OUT _PUBLICNUM varchar(12)
)
BEGIN
DECLARE freeOne varchar(12);
DECLARE affected tinyint(4);
DECLARE EXIT handler FOR SQLEXCEPTION
package leetcode.merge_two_sorted_list;
import org.junit.Test;
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
package leetcode.valid_parentheses;
import org.junit.Test;
import java.util.EmptyStackException;
import java.util.Stack;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
package leetcode.longest_common_prefix;
import org.junit.Test;
public class Solution {
@Test
public void test() {
String[] strs = {"geeksforgeeks", "geeks", "geek", "geezer"};
String longestCommonPrefix = longestCommonPrefix(strs);
package leetcode.palindrome_number;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class Solution {
public int reverse(int x) {
package leetcode.reverse_integer;
public class Solution2 {
public static void main(String[] args) {
Solution2 s = new Solution2();
int result = s.reverse(123);
assert result == 321;
System.out.println(result);
package leetcode.two_sum;
import org.junit.Test;
import java.util.Arrays;
public class BruteForceSolution {
@Test
public void test() {
package leetcode.add_two_numbers;
import org.junit.Test;
import static org.junit.Assert.assertSame;
public class Solution {
@Test
public void test() {
import org.junit.Test;
import java.util.Arrays;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
public class SelectionSort {
@Test