전체 글

    [LeetCode] Sort Colors

    Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue. We will use the integers 0, 1, and 2 to represent the color red, white, and blue, respectively. Example 1:Input: nums = [2,0,2,1,1,0] Output: [0,0,1,1,2,2] Example 2: Input: nums = [2,0,1] Output: [0,1,2] Example 3: ..

    [LeetCode] Make The String Great

    문제 소문자와 대문자가 섞인 문자열 s가 주어진다. 인접한 문자가 서로 같은 알파벳이면서 대 소문자로 차이가 난다면 쌍소멸 시키는 문제인듯 하다. 조건 2글자 이상 자료구조에 저장시켜서 지금저장 시킨것과 2차례전에 저장시킨것이 ASCII코드 +- 32차이가 나는지 확인하고 만약 그렇다면 모두 날려버리기 vice-versa == 이 경우에도 그 반대의 경우에도 마찬가지이다. 구글링하다가 c++ stack으로 푸신 분이 계셔서 ArrayList로 접근 class Solution { public String makeGood(String s) { String result = ""; ArrayList temp = new ArrayList(); for(int i = 0; i < s.length(); i++) { t..

    13. 회원가입: 메인 네비게이션 메뉴 변경

    출처 www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81-JPA-%EC%9B%B9%EC%95%B1/dashboard 스프링과 JPA 기반 웹 애플리케이션 개발 - 인프런 | 강의 이 강좌에서 여러분은 실제로 운영 중인 서비스를 스프링, JPA 그리고 타임리프를 비롯한 여러 자바 기반의 여러 오픈 소스 기술을 사용하여 웹 애플리케이션을 개발하는 과정을 학습할 수 있습 www.inflearn.com github.com/devjun63/whiteship-studyolle/commit/588a1d6f32d262f2f27bf7138eeedcdc4213558c 13. 회원가입: 메인 네비게이션 메뉴 변경 · devjun63/whiteship-studyolle@588a1d6 ..

    CodingTest with Github pull request

    깃헙으로 스터디분들과 함께 코딩테스트 준비를 하게 되었다. 10년차 개발자분께서 깃헙으로 pull request를 사용하자고 하셔서 협업을 위한 준비 과정을 적어보려고 한다. 많은 조언 부탁드립니다. 1. 주최자분의 깃헙 clone 2. 자신의 branch 생성 및 checkout 3. 내용 작성 및 add commit push -> origin 4. master에 pull request 요청 5. commit and push 누락해서 다시 시도 6. pull request 버튼 생성 7. pull request 작성

    [LeetCode] Assign Cookies

    오늘의 문제easy난이도, greedy 문제 의식의 흐름 각 배열을 정렬시키고 해당 원소 값이 동일하면 나오지 않을까?import java.util.Arrays; class Solution { public int findContentChildren(int[] g, int[] s) { int smallArrSize = 0; int count = 0; int gSize = g.length; int sSize = s.length; Arrays.sort(g); Arrays.sort(s); smallArrSize = (sSize < gSize) ? sSize : gSize; for(int i = 0; i < smallArrSize; i++) { if(g[i] == s[i]) count ++; } return co..

    [LeetCode] Palindrome Number (대칭수)

    코딩 테스트 대비 leetcode에서 지인과 함께 1일 1코테를 하려고 한다. leetcode.com/problems/palindrome-number/ Palindrome Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com gist.github.com/devjun63/2f506c247a0e793ff0ff6a974499946b leetcode - Palindrome Number Solve leetcode - Palindrome Number Solve. ..