검색결과 리스트
프로그래머스에 해당되는 글 199건
- 2023.04.03 프로그래머스 레벨3 오랜 기간 보호한 동물(1)(오라클SQL, LEFT join)
- 2023.03.26 프로그래머스 레벨1 둘만의 암호 C#, JAVA(아스키코드)
- 2023.03.15 프로그래머스 레벨3 있었는데요 없었습니다(오라클SQL, JOIN)
- 2023.03.14 프로그래머스 레벨4 우유와 요거트가 담긴 장바구니(오라클SQL, INTERSECT, 셀프 조인)
- 2023.03.13 프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움)
- 2023.03.13 프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL)
- 2023.03.12 프로그래머스 레벨2 동명 동물 수 찾기(오라클SQL, group by, having)
- 2023.03.12 프로그래머스 레벨1 이름이 있는 동물의 아이디(오라클SQL)
글
프로그래머스 레벨3 오랜 기간 보호한 동물(1)(오라클SQL, LEFT join)




-- 코드를 입력하세요
SELECT *
from (select T1.name, T1.datetime
from ANIMAL_INS T1
left join ANIMAL_OUTS T2
on T1.animal_id = T2.animal_id
where T2.animal_id is null
order by T1.datetime)
where rownum<=3;
'SQL프로그래밍' 카테고리의 다른 글
SQLD 시험 결과 발표 (0) | 2023.04.07 |
---|---|
프로그래머스 레벨3 있었는데요 없었습니다(오라클SQL, JOIN) (0) | 2023.03.15 |
프로그래머스 레벨4 우유와 요거트가 담긴 장바구니(오라클SQL, INTERSECT, 셀프 조인) (0) | 2023.03.14 |
프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움) (0) | 2023.03.13 |
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL) (0) | 2023.03.13 |
글
프로그래머스 레벨1 둘만의 암호 C#, JAVA(아스키코드)
C#
using System;
public class Solution {
public string solution(string s, string skip, int index) {
string answer = "";
for(int i = 0;i<s.Length;i++)
{
int asc = Convert.ToInt32(s[i]);
for(int k = 0;k<index;k++)
{
asc++;
if(asc > 122)
{
asc = asc - 26;
}
for(int j = 0;j<skip.Length;j++)
{
if(skip.Contains((char)asc))
{
asc++;
if(asc > 122)
{
asc = asc - 26;
}
}
}
}
answer += (char)asc;
}
return answer;
}
}
////////////////
자바
class Solution {
public String solution(String s, String skip, int index) {
StringBuilder answer = new StringBuilder();
for (char letter : s.toCharArray())
{
char temp = letter;
int idx = 0;
while (idx < index)
{
temp = temp == 'z' ? 'a' : (char) (temp + 1);
if (!skip.contains(String.valueOf(temp)))
{
idx += 1;
}
}
answer.append(temp);
}
return answer.toString();
}
}
class Solution {
public String solution(String s, String skip, int index) {
String answer = "";
for (char c : s.toCharArray())
{
for (int i = index; i > 0; i--)
{
c++;
if (c > 122) c -= 26;
while (skip.contains(String.valueOf(c)))
{
c++;
if (c > 122) c -= 26;
}
}
answer += c;
}
return answer;
}
}
https://m.blog.naver.com/gboarder/90015619564
[C#] 문자의 ASCII코드 얻는 방법
Written by Youngil Kim, C#.NET Developer ASCII코드란 숫자, 영소대문자등에 할당된...
blog.naver.com
'프로그래밍' 카테고리의 다른 글
프로그래머스 레벨1 C# 옹알이(2) (자바) (0) | 2023.04.08 |
---|---|
프로그래머스 레벨2 삼각 달팽이 C#, JAVA (0) | 2023.03.28 |
프로그래머스 레벨2 숫자 변환하기 C# (완전탐색) (0) | 2023.02.26 |
프로그래머스 레벨2 프린터 C#(큐, queue) (0) | 2023.02.26 |
프로그래머스 레벨2 무인도 여행(JAVA) dfs (0) | 2023.02.26 |
글
프로그래머스 레벨3 있었는데요 없었습니다(오라클SQL, JOIN)



-- 코드를 입력하세요
SELECT
T1.ANIMAL_ID,
T1.NAME
from
ANIMAL_INS T1,
ANIMAL_OUTS T2
where T1.ANIMAL_ID = T2.ANIMAL_ID and
T1.DATETIME > T2.DATETIME
order by T1.DATETIME
'SQL프로그래밍' 카테고리의 다른 글
SQLD 시험 결과 발표 (0) | 2023.04.07 |
---|---|
프로그래머스 레벨3 오랜 기간 보호한 동물(1)(오라클SQL, LEFT join) (0) | 2023.04.03 |
프로그래머스 레벨4 우유와 요거트가 담긴 장바구니(오라클SQL, INTERSECT, 셀프 조인) (0) | 2023.03.14 |
프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움) (0) | 2023.03.13 |
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL) (0) | 2023.03.13 |
글
프로그래머스 레벨4 우유와 요거트가 담긴 장바구니(오라클SQL, INTERSECT, 셀프 조인)



-- 코드를 입력하세요
SELECT DISTINCT T1.CART_ID
from CART_PRODUCTS T1,
CART_PRODUCTS T2
where
T1.CART_ID = T2.CART_ID and
T1.NAME = 'Yogurt' and
T2.NAME = 'Milk'
order by T1.CART_ID
/// 셀프 조인을 이용하는 방법도 있고
SELECT CART_ID
FROM CART_PRODUCTS
WHERE NAME = 'Yogurt'
INTERSECT
SELECT CART_ID
FROM CART_PRODUCTS
WHERE NAME = 'Milk'
ORDER BY CART_ID
/// INTERSECT를 이용하는 법도 있다.
'SQL프로그래밍' 카테고리의 다른 글
프로그래머스 레벨3 오랜 기간 보호한 동물(1)(오라클SQL, LEFT join) (0) | 2023.04.03 |
---|---|
프로그래머스 레벨3 있었는데요 없었습니다(오라클SQL, JOIN) (0) | 2023.03.15 |
프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움) (0) | 2023.03.13 |
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL) (0) | 2023.03.13 |
프로그래머스 레벨2 동명 동물 수 찾기(오라클SQL, group by, having) (0) | 2023.03.12 |
글
프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움)


-- 코드를 입력하세요
SELECT NAME, DATETIME
FROM ANIMAL_INS
order by ANIMAL_ID DESC
'SQL프로그래밍' 카테고리의 다른 글
프로그래머스 레벨3 있었는데요 없었습니다(오라클SQL, JOIN) (0) | 2023.03.15 |
---|---|
프로그래머스 레벨4 우유와 요거트가 담긴 장바구니(오라클SQL, INTERSECT, 셀프 조인) (0) | 2023.03.14 |
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL) (0) | 2023.03.13 |
프로그래머스 레벨2 동명 동물 수 찾기(오라클SQL, group by, having) (0) | 2023.03.12 |
프로그래머스 레벨1 이름이 있는 동물의 아이디(오라클SQL) (0) | 2023.03.12 |
글
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL)


-- 코드를 입력하세요
SELECT ANIMAL_ID, NAME
from ANIMAL_INS
order by ANIMAL_ID
'SQL프로그래밍' 카테고리의 다른 글
프로그래머스 레벨4 우유와 요거트가 담긴 장바구니(오라클SQL, INTERSECT, 셀프 조인) (0) | 2023.03.14 |
---|---|
프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움) (0) | 2023.03.13 |
프로그래머스 레벨2 동명 동물 수 찾기(오라클SQL, group by, having) (0) | 2023.03.12 |
프로그래머스 레벨1 이름이 있는 동물의 아이디(오라클SQL) (0) | 2023.03.12 |
프로그래머스 레벨1 상위 n개 레코드(오라클SQL) (0) | 2023.02.11 |
글
프로그래머스 레벨2 동명 동물 수 찾기(오라클SQL, group by, having)



-- 코드를 입력하세요
SELECT
NAME,
COUNT(NAME) as count
from ANIMAL_INS
group by NAME HAVING count(NAME) > 1
order by NAME;
'SQL프로그래밍' 카테고리의 다른 글
프로그래머스 레벨1 역순 정렬하기(오라클SQL, 개쉬움) (0) | 2023.03.13 |
---|---|
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL) (0) | 2023.03.13 |
프로그래머스 레벨1 이름이 있는 동물의 아이디(오라클SQL) (0) | 2023.03.12 |
프로그래머스 레벨1 상위 n개 레코드(오라클SQL) (0) | 2023.02.11 |
프로그래머스 레벨3 자동차 대여 기록에서 대여중 / 대여 가능 여부 확인하기(오라클SQL, MAX, case when) (0) | 2023.02.11 |
글
프로그래머스 레벨1 이름이 있는 동물의 아이디(오라클SQL)



-- 코드를 입력하세요
SELECT ANIMAL_ID
from ANIMAL_INS
where NAME is not null
order by ANIMAL_ID ASC
'SQL프로그래밍' 카테고리의 다른 글
프로그래머스 레벨1 동물의 아이디와 이름(오라클SQL) (0) | 2023.03.13 |
---|---|
프로그래머스 레벨2 동명 동물 수 찾기(오라클SQL, group by, having) (0) | 2023.03.12 |
프로그래머스 레벨1 상위 n개 레코드(오라클SQL) (0) | 2023.02.11 |
프로그래머스 레벨3 자동차 대여 기록에서 대여중 / 대여 가능 여부 확인하기(오라클SQL, MAX, case when) (0) | 2023.02.11 |
프로그래머스 레벨4 입양 시각 구하기(2)(오라클SQL, 서브쿼리, CONNECT BY LEVEL) (0) | 2023.02.11 |