| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
- GKE
- docker
- k8s
- go
- kubernetes
- easy
- Observer Pattern
- mobaXTerm
- GCP
- Top-down
- KAKAO
- 백준
- BubbleSort
- java
- Singleton Pattern
- github
- 파이썬
- golang
- cpu scheduling
- Dynamic Programming
- 알고리즘
- 피보나치
- 그리디
- Backjoon
- Programmers
- Python
- Codility
- LeetCode
- Kotlin
- Today
- Total
목록java (2)
To Be Developer
Singleton Pattern 인스턴스가 하나 뿐인 객체를 만들 수 있게 해 주는 패턴 어디서든지 그 인스턴스에 접근할 수 있도록 하기 위한 패턴 Little Singleton public MyClass{ // 생성자가 private로 선언되어 있기 때문에 인스턴스를 만들 수 없다. private MyClass(){} // return 타입이 MyClass인 getInstance 라는 명인 정적 메서드 // 그렇기에 생성자가 private로 선언되어있어도 인스턴스를 만들 수 있게 되었다. // 호출하는 방법은 MyClass.getInstance(); public static MyClass getInstance(){ return new MyClass(); } // getInstance는 정적 메소드 or..
https://leetcode.com/problems/repeated-substring-pattern/ LeetCode - The World's Leading Online Programming Learning Platform 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 [JAVA 풀이] class Solution { public boolean repeatedSubstringPattern(String s) { // 매개변수 s의 길이 int sLen = s.length(); /..