묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
왜 오답인지 궁금합니다
안녕하세요. 저는 0번지부터 시작해서 푼 다음에 마지막에 +1로 정답을 넣었고, Set을 사용해서 중복친구를 제거했습니다. 예시와 아래 테스트케이스는 맞게 나오는데, 채점하면 오답이라고 나옵니다. 제가 뭘 놓쳤는지 궁금합니다! 5 1 1 1 1 1 1 1 1 1 1 1 3 4 5 5 3 3 3 3 3 4 4 4 4 4 public static int solution(int n, int[][] arr) { Set<Integer> sameClass = new HashSet<>(); int max = 0; int answer = 0; for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ for(int k = 0; k < 5; k++){ if(i != j && arr[i][k] == arr[j][k]){ sameClass.add(j); } } } if(max < sameClass.size()){ max = sameClass.size(); answer = i+1; } sameClass.clear(); } return answer; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] arr = new int[n][5]; for(int i = 0 ; i < n; i++){ for(int j = 0; j < 5; j++){ arr[i][j] = sc.nextInt(); } } int answer = solution(n, arr); System.out.println(answer); }
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
Assert 심볼을 해결할 수 없습니다.
안녕하세요 계속 질문 드려 죄송합니다 ㅠㅠ 구글링을 해도 해결방안을 찾지 못했습니다. application.yml 파일을 생성하고 테스트를 하려고 junit4 로 만들었습니다. 여기서 Assert부분이 빨간색으로 나타나며 심볼을 해결할 수 없다고 뜹니다. 이미지 보시면 제가 생성한 yml 파일 형식의 아이콘이 동영상이랑 다르긴한데 application.yml 파일에 오류가 나서 import가 안되는 것일까요? 혹시 몰라 ;MVCC=TRUE 도 삭제해보고 다시 시도 해봤지만 그대로입니다. 어떤 해결 방안이 있을까요!? ㅜㅜ
-
미해결애플 웹사이트 인터랙션 클론!
.sticky-elem 질문입니다.
.sticky-elem {position: fixed;} 을 하고 left:0, left:100 을 주나 위치가 변동이 되지 않습니다. 마찬가지로 right 값을 줘도 변하지 않습니다. 결론은 top:0 이 값만 있어도 가운데로 고정이 됩니다.위치가 변하지 않는데 굳이 left:0 을 주는 이유가 궁금합니다.
-
미해결
Reasons due to which you can't delete a PayPal account-
When you want to cancel a PayPal account, you can follow the steps below to remove all your bank details and personal information. Once you delete your account, you cannot re-open it. However, you can create a new one with the same email address and continue using it. The only thing you'll lose is your transaction history. This process is the same for business and personal accounts. Before you choose to cancel your PayPal account, be sure to check whether there are any outstanding issues with your account. To permanently delete your PayPal account, first make sure that you've made a backup of your transaction history. You may want to print this out to keep a copy of the transactions. Next, log into your PayPal account on your computer and click on the gear icon in the upper right corner. Go to the Settings menu and select "Close my account." Then, follow the instructions to confirm your action. To delete your PayPal account, go to your profile page Click on "Close My Account" located in the upper right corner. Then, select "Close Account" in the bottom-right corner. After clicking this button, click on the Close My PayPal Account option, and confirm your decision to close your account. You will have to print out a copy of your transaction history to ensure that you have no unauthorised transactions in the future. How to Delete a PayPal Account From Your Phone? How do you delete a PayPal account from your phone? If your account has been compromised, or you've switched to a different payment platform, you've come to the right place. PayPal apps have an option called "Settings" in the bottom-right corner of the screen. Click on this and you'll be presented with a list of all your accounts. Tap the account you wish to delete, and then follow the prompts. If you've deleted your account, don't worry. It's possible to recreate it with a new email address. The disadvantage is that you'll lose all transaction history. So, before you decide to delete your Paypal account from your phone, backup your information and transactions on a different device. You can do this by logging into your PayPal page on your computer or laptop, and then deleting your account from there. If you've decided to delete your Paypal account, you should know that the process will take some time. This is because PayPal will clear all the relevant information before deleting your account. This means that you'll have to restore your previous transactions, and the process will take some time. In the meantime, you can still keep your account's transaction history by taking a screenshot of the details. You can also manually delete your PayPal account on your computer or laptop. Why Can't I Delete My PayPal Account? There are a few reasons why you might want to delete your PayPal account. You can do this on your own, or you can ask a friend or family member for help. If you don't want to keep a copy of your transaction history, you can screenshot it. Then, you can decide to change your mind later. You can also switch from a business account to a personal one. In any case, you can always ask for help from PayPal customer support. However, you cannot completely delete your account if you have made a payment. There are a few reasons you might want to delete your PayPal account. For example, you may have an account with a different email address. If this is the case, you may want to re-open it with a new email address. If you decide to delete your account, you can do so by logging into your PayPal profile using your laptop or personal computer. A mobile device will not allow you to do this. Once you're logged in, simply click the "Close Account" button and confirm that you wish to delete your account. There are a number of reasons to delete the PayPal account on app. It may be that you've already found a better option or are against paying fees. Whatever your reason, closing your PayPal account is an easy and quick way to keep your finances private. While PayPal is one of the safest ways to send money online, you should still take care of any unresolved issues. If this is the case, it's best to get your financial records back in order.
-
해결됨프론트엔드 개발자를 위한, 실전 웹 성능 최적화(feat. React) - Part. 2
궁금한 점이 있습니다.
불필요한 css를 purgecss로 제거하셨는데, 궁금한 점이 웹앱의 경우는 웹에서 사용하는 css는 앱에선 필요없고, 앱에서 사용하는 css는 웹에서는 필요없는데 이런것도 구별해서 제공을 해주는지 궁금합니다. 웹앱의 경우는 두개의 css를 다 갖고 있어서 불필요한 css를 줄일 수 있는지가 궁금합니다.
-
미해결Vue.js 시작하기 - Age of Vue.js
Router 질문드립니다.2
먼저 답변 주셔서 너무 감사합니다.어떻게 해야 하는지 막막했는데 방향을 알려 주셔서 너무 감사합니다.완벽가이드의 어느 강좌에 설명이 나오는지 알려주시면 감사하겠습니다.강사님이 알려주신 사이트를 보니까 원인은 history 모드로 인해 발생는것을 알았습니다. node, express 와 아파치2 를 사용하는데 두군데 모두 수정을 해야하는것 같은데 강사님 강의를 듣는게 확실할것 같아서 문의 드리니 답변 부탁 드립니다.
-
미해결Axure RP 9,10 - 서비스 기획자를 위한 최적의 프로토타이핑 툴
Axure 버전별 호환성 문제
RP9와 RP10d이 호환이 안되나요? 9에서 작업한게 10에서 안열린다는 이야기가 있던데요... 사실인가요?
-
미해결[2021] 요즘 누가 유료로 웹서비스 구축하나, 파이어베이스의 모든 것 - Vue.js
작업하신 Source는 어디서 다운 받을수 있나요? Table2 화면
좋은 강의 잘들었습니다. 현업에서 사용하기에 정말 유효한 꿀팁들로 가득 차있어서 매우 만족 합니다. 혹 작업하신 Source는 어디서 다운 받을수 있나요? Table2 화면을 받아보아서 Before and After를 비교해보고자 합니다. 수고하세요.
-
미해결홍정모의 따라하며 배우는 C언어
7분 20초 num의 소수 존재유무 예제 질문드립니다.
7분 20초 num의 소수 존재유무 예제 질문드립니다. for (unsigned div = 2; div < num; ++div) { if (num % div == 0) isPrime = false; } 이 부분에서 반복 조건이 (div < num) 하나밖에 없는데도 num의 소수 존재 유무를 알 수 있는 이유가 어떤건가요? 예를 들어 num이 숫자 9라면 div가 2일때는 isPrime = true였다가 div 3일때는 isPrime = false로 바뀌고 다시 div가 4일때는 isPrime = true로 바뀌어서 반복조건에 (div < num) 하나만 있으면 isPrime이 제대로 된 값을 갖지 못하는것 아닌가요? 제가 생각하기에는 조건에 (div < num) && (isPrime == true)가 있어야 한다고 생각했는데 강의에 나온대로 코딩하면 문제없이 잘 이루어지는게 이해가 안되서 질문드립니다.
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
주사위게임
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요 주사위게임 풀다가 질문이 있어서 글올립니다 n=int(input()) for i in range(n): a=list(map(int, input().split())) k=[0]*6 # [0,0,0,0,0,0] prize=0 max_prize=-0.1 for j in a: k[j-1] += 1 if k[j-1]==3: print(k[j-1],'3번')# 2 2 2 prize=10000+(j)*1000 print(prize) elif k[j-1] ==2: print(k[j-1],'2번')# 3 3 6 prize=1000+(j)*100 print(prize) elif k[j-1] ==1: print(k[j-1],'1번')# 6 2 5 prize=max(a)*100 print(prize) print(prize) 현재 저는 이렇게 풀고 있는 중인데 3 3 6을 넣었을 때 마지막 6을 넣었을 때 계속 오류가 나서 1300으로 prize값을 얻지 못하고 계속 600으로 뜹니다. 3 3 3 6 1 1번 600 600 2 2번 1300 1 1번 600 600
-
미해결Java TPC (생각하고, 표현하고, 코딩하고)
맥os에서 Gson 다운로드가 안됩니다.
maven에서 gson 다운로드 받았는데 맥os에서는 java 응용프로그램 실행에 실패했다고 뜨네요... 구글링 했는데도 방법을 못찾겠습니다. 맥os를 처음 써보는데 여러가지 안되는 것들이 많네요. 설치하는 방법을 알 수 있을까요??
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
안녕하세요 터미널로 spring-boot를 실행할 때 문제가 있어 질문드립니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 강사님 무료강의 보고 따라하려 하였으나, 맥 os에 대한 방법이 나와있지 않은 것같아 구글링하여 환경변수 설정을 하였습니다. 그런데 maven의 버전이 문제인지, 2.6.4와 같은 형태로 나와있는것 같아 여러 방면으로 오류를 해결하고자 하였으나 해결에 어려움을 겪어 질문드립니다. mvn --version은 3,.8.4(최신버전)입니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
git commit 이 작동을 안합니다.
git commit -m "처음 저장소에 올림" 을 입력하고 엔터치면 On branch master Initial commit Untracked files: .gitignore index.js models/ package-lock.json package.json nothing added to commit but untracked files present 이런 메세지가 뜹니다. 어떻게 해결해야 할까요? ㅠㅠ
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
같은 눈이 2개만 나온 경우에 대한 질문입니다.
tmp.sort() 로 값을 정렬했으니, a == c 가 성립하는 경우는 a, b, c 가 모두 같은 값인 경우밖에 없지 않을까요? 그러니 같은 눈이 2개인 elif 조건문에서 elif a==b or a==c: 가 아닌, elif a==b: 인 것이 더 정확하지 않을까요? 물론, 처음 if 조건문에서 같은 눈이 3개 나오는 경우가 미리 처리되기 때문에 결과값은 이러나저러나 똑같이 나올 것 같지만요.
-
미해결비트코인 알고리즘 트레이딩 봇 개발
매수 금액설정
안녕하세요. 강의를 다 본 뒤 코드를 작성하고 업비트에서 실제로 매수 매도를 진행해보니 매수할 금액이 부족하면 오류가 발생하여 봇 작동이 멈췄습니다. 저는 매수할 금액이 부족하더라고 봇은 계속 돌아가서 매도는 진행하고 싶은데 혹시 어떤 코드를 추가하면 되는건지 궁금합니다.
-
미해결자바(Java) 알고리즘 문제풀이 입문: 코딩테스트 대비
다른 풀이 질문입니다.
안녕하세요. 제가 푼 방법은 import java.util.*; public class Main12 { public static void main(String[] args) { Main12 t = new Main12(); Scanner sc = new Scanner(System.in); int input = sc.nextInt(); String str = sc.nextLine(); System.out.println(t.solution(input, str)); } public String solution(int input, String str) { String answer = ""; String[] strArr = {}; char c1 = '#'; char c2 = '*'; for (int j = 0; j < input; j++) { strArr[j] = str.substring(0, 7); str = str.substring(7); } //????? char[] s = str.toCharArray(); for (int i = 0; i < s.length; i++) { if (s[i] == c1) { s[i] = '1'; } else if (s[i] == c2) { s[i] = '0'; } } String str2 = String.valueOf(s); int n = Integer.parseInt(str2, 2); if (n >= 65 && n <= 90) { char c3 = (char)(n); answer += c3; } return answer; } } 이런식으로 풀었습니다. 주석????처리된 부분을 빼고 그냥 #****## 넣었을때는 정상적으로 C가 출력되는데 주석으로 ????된 부분인 입력값을 7글자 단위로 끊는 코드 작성을 어떤식으로 해야할지 모르겠습니다. 지금 제가 올린 방법으로 하니 컴파일 에러가 발생하네요..
-
해결됨배달앱 클론코딩 [with React Native]
푸시알림에 관하여 질문있습니다!
안녕하세요 제로초님 fcm푸시알림에 대하여 질문있습니다. 강좌에서 푸시알림을 보내면 백그라운드 작업표시줄에만 푸시 알림이 오잖아요? 이런식으로요 그런데 저는 이런식으로 알림이 오게 하고싶습니다. 카톡이나 쿠팡 다른 앱들의 푸시알림은 이렇게 통일 되어서 오더라구요? 그래서 로컬 notification이랑 합쳐서 사용해봤더니 전혀 다른 디자인의 알림이 왔습니다. 그래서 이방법은 아닌것 같았구요. 구글에 검색해보니 저렇게 오게 하려면 push permission을 받아야 한대서 react-native-permissions 라이브러리에 서 찾아보니 안드로이드는 push notification을 받을 수 없다고 나오더라구요... 구글에 검색한 결과 의견이 다 다르게 나와 무엇이 맞는것인지 잘모르겠습니다. 혹시 백그라운드에서 저렇게 카톡이나 쿠팡알림 처럼 알림이 오게하려면 어떤것을 사용해야하나요?
-
미해결[구버전] 웹 애플리케이션 개발을 위한 IntelliJ IDEA 설정 (2020 ver.)
버전
myweb 버전이 영상이 나올대로 하니깐 오류가 납니다.
-
미해결스프링 MVC 2편 - 백엔드 웹 개발 활용 기술
요즘은 장기 로그인 유지를 많이 하는 거 같은데 맞나요?
원칙적으론 보안에 위협이 되겠지만 배민이나 쿠팡이나 등등 쇼핑 서비스를 보면 로그아웃을 하지 않는 이상 로그인이 유지시키는 것 같은데 아무래도 편의성 때문에 그렇겠죠? 그런 큰 서비스들은 회원 수만 몇천만일텐데 이런 경우도 다 메모리에 저장하고 있는 것인가요? 위와 같은 초대형의 사례들에선 세션 유지관리의 개념과 철학이 아예 근본부터 다를 것 같은데 어떤 식으로 관리 되는 것인지 궁금합니다. 아니면 그런 거 없이 동일한 건가요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
multi db 관리
안녕하세요. 강의 잘 들었습니다. 혹시 main yml에서는 mySql을 쓰고, test yml에서는 강의에서처럼 testDB로 따로 관리할 수 있을까요?