오늘 생각한 것
와 레벨 1 문제가 안 풀려서 하루종일 끙끙댔다
아침에 샤워하고 맑은 정신으로 풀어보려고 했는데 공부를 해야할 거 같아서 공부를 하고
점심 빨리 먹고 점심시간에 어제 못 푼 문제 잠깐 보려다가 그 길로 두시간동안 문제만 풀고 당떨어지고 기진맥진해서 두시간 추가로 휴식했다
저녁도 빨리 먹고 또 똑같은 문제 들여다보고 있는데 아무리 생각해봐도 내 알고리즘에서 대체 뭐가 틀렸는지 모르겠다 내가 무슨 케이스를 생각을 안 했지?
내일 스프링 개인과제가 나온다는데 스프링 강의 아직 조금밖에 못 들어서 걱정된다
과제 나온거 보면 동기부여되어서 강의를 빨리 들을 수 있을까?
오늘 앞으로 어떻게 살지 구체적으로 생각해봤는데 일단 100일동안 스프링이랑 코테랑 친해지는게 목표다
스프링은 강의랑 과제 다 따라가면서 해내는게 목표고
코테는 하루에 레벨1문제 1개랑 레벨0문제 5개 풀기로 했다
레벨1문제가 77개있고 레벨0문제가 224개 있어서 대충 100일 안에 끝낼 수 있을 거 같다
근데 일단 저 덧칠하기를 넘어서야 다음 레벨1문제를 풀듯... 원래 한시간동안 레벨1문제 풀고나서 추가 공부도 하고 TIL도 썼었는데 덧칠하기라는 빌런을 만나버리고 내 인생이 180도 달라졌다
일단 내일은 오늘보다 강의 더 많이 들어야지...
오늘 공부한 것
[내일배움캠프][Spring][1주차]테스트코드
테스트코드 테스트의 필요성 버그 : 소프트웨어가 예상하지 못한 결과를 내는 것 '소스 코드'나 '설계과정에서의 오류' 때문에 발생 테스트 : 소프트웨어가 예상한대로 결과를 내는지 모든 상황
greedydeveloper.tistory.com
[내일배움캠프][Spring][1주차]Lombok과 application.properties
setting → annotation properties → Enable annotation processing → apply,OK double shift → 파일을 찾을 수 있음 plugins 검색 installed → Lombok 검색 추가가 안 되어있다면 추가하기 package com.example.practice; import lombok.*
greedydeveloper.tistory.com
[내일배움캠프][Spring][1주차]Spring MVC
Spring MVC Model-View-Controller M : Model V : View C : Controller 소프트웨어 디자인 패턴 중 하나 디자인 패턴: 소프트웨어 개발 방법들을 패턴화 해 놓은것 MVC 패턴은 소프트웨어를 구성하는 요소들을 Model, V
greedydeveloper.tistory.com
오늘 푼 문제
[프로그래머스][Lv.0]문자열 붙여서 출력하기
문제 주소 https://school.programmers.co.kr/learn/courses/30/lessons/181946 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁
greedydeveloper.tistory.com
[프로그래머스][Lv.0]문자열 돌리기
문제 주소 https://school.programmers.co.kr/learn/courses/30/lessons/181945?language=python3 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고,
greedydeveloper.tistory.com
[프로그래머스][Lv.0]홀짝 구분하기
문제 주소 https://school.programmers.co.kr/learn/courses/30/lessons/181944 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁
greedydeveloper.tistory.com
[프로그래머스][Lv.0]문자열 겹쳐쓰기
문제 주소 https://school.programmers.co.kr/learn/courses/30/lessons/181943 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁
greedydeveloper.tistory.com
[프로그래머스][Lv.0]문자열 섞기
문제 설명 길이가 같은 두 문자열 str1과 str2가 주어집니다. 두 문자열의 각 문자가 앞에서부터 서로 번갈아가면서 한 번씩 등장하는 문자열을 만들어 return 하는 solution 함수를 완성해 주세요. 제
greedydeveloper.tistory.com
오늘 풀지못한 문제
[프로그래머스]덧칠하기
문제 주소 https://school.programmers.co.kr/learn/courses/30/lessons/161989 문제 설명 어느 학교에 페인트가 칠해진 길이가 n미터인 벽이 있습니다. 벽에 동아리 · 학회 홍보나 회사 채용 공고 포스터 등을 게시
greedydeveloper.tistory.com
제발 내일은 해결할 수 있기를... 테스트케이스 추가하면 문제 파악되어서 해결되기를...
오늘 배운것
⭐Java substring()
Returns a new string which is the substring of a specified string
- public String substring(int startIndex) → returns from startIndex to the end
- public String substring(int startIndex, int endIndex)
str.substring(2)
⭐Python slicing
string[start:end:step]
Get the first 5 characters
string = "freeCodeCamp"
string[0:5]
string[:5]
Get a substring 4 characters long, starting from the 3rd character of the string
string[2:6]
Get the last character of the string
string[-1]
Get the last 5 characters of a string
string[-5:]
Get a substring which contains all characters except the last 4 characters and the 1st character
string[1:-4]
Get every other character from a string
string[::2]
띄엄띄엄 가져올 수 있다는게 신기했음
⭐Python String replace() Method
txt = "I like bananas"
x = txt.replace("bananas", "apples")
print(x)
string.replace(oldvalue, newvalue, count)
Parameter Description
oldvalue | Required. The string to search for |
newvalue | Required. The string to replace the old value with |
count | Optional. A number specifying how many occurrences of the old value you want to replace. Default is all occurrences |
⭐Python String Concatenation
x = "Python is "
y = "awesome"
z = x + y
print(z)
⭐How to get char from string by index?
s = "python"
s[3]//'h'
⭐Java String에다 char그냥 붙여도 됨
answer = answer + Character.toString(str1.charAt(i))
+ Character.toString(str2.charAt(i));
->
그냥
answer = answer + str1.charAt(i)+str2.charAt(i);
이렇게 해도 됨
'Bin > 개발일지' 카테고리의 다른 글
2023-11-07, Today I Learned (0) | 2023.11.07 |
---|---|
2023-11-03, Today I Learned (0) | 2023.11.03 |
2023-11-01, Today I Learned (1) | 2023.11.01 |
2023-10-31, Today I Learned (0) | 2023.10.31 |
2023-10-30 Today I Learned (1) | 2023.10.30 |