묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
교안 수정 제안 드립니다.
큰돌님 안녕하세요?해당 강의의 아래 질문과 같이 combi() 함수 구현 중 값에 의한 호출 / 참조에 의한 호출을 잘못해서 시간 초과가 발생했습니다. // 해당 질문 링크https://www.inflearn.com/course/lecture?courseSlug=10%EC%A3%BC%EC%99%84%EC%84%B1-%EC%BD%94%EB%94%A9%ED%85%8C%EC%8A%A4%ED%8A%B8-%ED%81%B0%EB%8F%8C&unitId=228311&tab=community&q=1286398&category=questionDetail 저도 combi 함수의 파라미터인 vector<int>를 값에 의한 호출로 써서 시간 초과가 났는데요, 값에 의한 호출을 사용한 이유 중 하나는 교안에 값에 의한 호출의 combi 예제가 있고 참조에 의한 호출 combi 두 가지 예제가 있어서 값에 의한 호출 예제를 사용했습니다. vector<int>의 경우 무조건(?) 참조에 의한 호출이 더 좋다면, (제가 이해한게 맞다면?)(최신 교안 150p) 교안의 아래 예시도 참조에 의한 호출로 바꾸면 어떨까요?(최신 교안 기준 165p)
-
해결됨그림으로 쉽게 배우는 운영체제
프로세스 상태 강의중 실행상태
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 강의문 중 CPU의 개수만큼 실행상태에 있을 수 있는 프로세스의 수가 정해진다고 하셨는데,여기서 'CPU의 개수가' 코어를 의미하는 건가요?
-
해결됨스프링 핵심 원리 - 기본편
LogDemoController 오류 질문
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예)[질문 내용]섹션 9에서 LogDemoController 에 관한 코드를 강의와 똑같이 작성하였는데, 빨간색 글씨로 바뀌면서 오류가 발생합니다. 어떻게 해야 하나요?
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
DFS와 BFS에서 이해가 되지 않는 부분이 있습니다
안녕하세요 선생님 🙂개념 관련 질문이어서 이렇게 따로 질문 드립니다. 양해 부탁 드립니다. 근래 DFS와 BFS를 푸는 도중에 이해가 되지 않는 부분이 있어서 질문 드립니다. 가중치가 같을 경우, 가중치를 구하는 문제는 DFS가 아닌 BFS를 써야한다고 배워서 그런가보구나 하고 외우고 문제를 풀어나갔습니다. 그런데 문득, DFS로도 가중치를 구할 수 있지 않나 싶더라구요. 선생님께서 알려주신 DFS방식과는 별개로, BFS의 queue를 stack으로만 바꿔도 DFS방식이 되기 때문에 변형하여 가중치를 계산해봤습니다. 기존에 풀었던 2-A 백준 2178번 미로탐색을 stack으로 변형하여 가중치를 계산해봤더니 출력 값이 오답으로 나오더라구요. 근데 이게 이해가 되지 않습니다. BFS의 일반적인 풀이는 queue와 4방향 탐색을 이용하여 좌표 값 (ny, nx)를 queue에 push하며 visited배열의 값을 ++하는 방식이었는데요, 좌표 값을 앞에서부터 가져온다는 특징이 있었습니다. 반대로 queue를 stack으로 변형한다면, stack과 4방향 탐색을 이용하여 좌표 값 (ny, nx)를 queue에 push하며 visited배열의 값을 ++하는 방식이 될텐데요, 좌표 값을 뒤에서부터 가져온다는 차이점이 있습니다. 하지만 이러한 차이점이 있다고 하더라도, 좌표 값의 앞부터 사용하는 것이 뒤에서부터 사용하는걸로 바뀔 뿐인데 왜 오답처리가 되는지 이해가 되지 않아서 질문드립니다. 장문의 질문을 읽어주셔서 감사합니다 :)
-
해결됨10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
3-L 질문있습니다 :)
안녕하세요 선생님 🙂 DFS를 이용한 완전탐색 문제인 것을 확인하였고, 덕분에 문제없이 문제를 풀 수 있었습니다. 감사합니다 :) 문제를 한 가지 방법이 아닌 여러 방법으로 접근해보고 있는데요, BFS를 이용한 완전탐색으로 변형을 해보려고 하는데 쉽지가 않네요;; ㅎㅎ 기존의 DFS와 BFS는 가중치만 없다면 자유롭게 변형이 가능해서 당연히 가능할거라고 생각했는데요, 이번 문제는 완전탐색까지 고려하자니 기존 방식대로는 안되는 것 같습니다. 조언 주시면 정말 감사하겠습니다!!
-
미해결[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!
Go router 를 이용한 Nested Navigation 질문 입니다.
Appbar 에는 progress bar 를 넣고, app bar 를 그대로 남겨둔채로 여러 페이지를 이동할 수 있는 UI 를 구현하고자 하는데, 이런 Nested Navigation 은 일반적으로 ShellRoute 를 이용해서 구현하면 되는 것이 맞는지 혹은 다른 best practice 가 있는지 궁금합니다! 선생님께서는 이런 경우에 어떤 방식을 이용하시나요?좋은 강의 감사드립니다.
-
해결됨[React / VanillaJS] UI 요소 직접 만들기 Part 2
useCallback, useMemo의 차이에 대해서 궁금합니다.
[셀렉트박스 (3/5) headless #2 hook 적용] 부분에서 getTriggerProps/getListProps 처럼 각 컴포넌트가 필요한 것들을 useCallback으로 감싸고 함수형태로 제공해주셨는데요, 아래처럼 useMemo를 이용해서 객체에 값을 담아서 전달해주는 방식은 다른 걸까요??const getTriggerProps = useCallback( () => ({ selectedItem: items[selectedIndex], toggle, }), [selectedIndex, items, toggle] ); const TriggerpropsValue = useMemo(() => { return { selectedItem: items[selectedIndex], toggle, }; }, [items, selectedIndex, toggle]);
-
미해결
Which Is The Best Overseas Education Consultants In India
In today’s globalized world, higher education has become a significant stepping stone for students aspiring to achieve their career goals. Many students in India dream of studying abroad, where they can gain international exposure, access to world-class education, and a chance to experience different cultures. However, navigating the complexities of the study abroad process can be challenging. This is where study abroad consultants play a crucial role. Among the many consultants available, The Student Helpline stands out as the best overseas education consultant in India, offering unparalleled services and support to students.Why Choose The Student Helpline?The Student Helpline has established itself as a trusted name in the field of overseas education consultancy. Here are several reasons why it is considered the best:Expert GuidanceThe Student Helpline boasts a team of experienced professionals who are well-versed in the intricacies of the study abroad process. They provide expert guidance tailored to each student’s individual needs, helping them make informed decisions about their education and career paths.Comprehensive ServicesFrom selecting the right course and university to assisting with applications and visa procedures, The Student Helpline offers a comprehensive range of services. Their all-encompassing support ensures that students have a smooth and hassle-free experience throughout their study abroad journey.Personalized AttentionUnderstanding that every student’s aspirations and requirements are unique, The Student Helpline provides personalized attention to each client. Their consultants take the time to understand the student’s goals, preferences, and academic background, ensuring that they receive the best possible advice and support.Strong NetworkWith a vast network of partner universities and colleges across the globe, The Student Helpline can offer students a wide array of options. This network allows them to find the best fit for each student, considering factors such as course offerings, campus facilities, location, and more.Success StoriesOver the years, The Student Helpline has helped thousands of students achieve their dream of studying abroad. Their success stories are a testament to their commitment to excellence and the high-quality services they provide.Services Offered by The Student HelplineThe Student Helpline provides a range of services designed to support students at every stage of their study abroad journey. These services include:Course and University SelectionChoosing the right course and university is a crucial step in the study abroad process. The Student Helpline offers expert advice and insights to help students select the best options based on their academic background, career goals, and personal preferences.Application AssistanceThe application process for international universities can be complex and time-consuming. The Student Helpline assists students with filling out applications, writing personal statements, and preparing for entrance exams, ensuring that their applications stand out.Visa GuidanceSecuring a student visa is often one of the most challenging aspects of studying abroad. The Student Helpline provides detailed guidance on visa requirements and procedures, helping students navigate this critical step with ease.Financial AdviceStudying abroad can be expensive, and many students require financial assistance. The Student Helpline offers advice on scholarships, grants, and other funding opportunities, helping students manage the financial aspects of their education.Pre-Departure SupportPreparing to move to a new country can be daunting. The Student Helpline offers pre-departure support, including information on accommodation, travel arrangements, and cultural adaptation, ensuring that students are well-prepared for their new adventure.Post-Arrival SupportThe Student Helpline’s support doesn’t end once the student arrives at their destination. They provide ongoing assistance to help students settle in, including help with finding part-time jobs, adjusting to the new academic environment, and more.Why Overseas Education Consultants Are ImportantChoosing to study abroad is a significant decision that involves considerable planning and preparation. Overseas education consultants like The Student Helpline play a vital role in this process for several reasons:Expertise and KnowledgeConsultants have in-depth knowledge of the study abroad process, including the requirements and procedures for different countries and universities. This expertise is invaluable in helping students navigate the complexities of studying abroad.Time and Stress ManagementThe application and visa processes can be time-consuming and stressful. Consultants take on these tasks, allowing students to focus on their studies and other important preparations.Increased Chances of SuccessWith their experience and insights, consultants can help students avoid common pitfalls and mistakes, increasing their chances of securing admission to their desired universities and programs.Personalized SupportConsultants provide personalized support tailored to each student’s needs and aspirations. This ensures that students receive the best possible advice and assistance throughout their study abroad journey.Success Stories of The Student HelplineThe success stories of students who have benefited from The Student Helpline’s services are a testament to their expertise and commitment. Here are a few examples:Ananya’s Journey to HarvardAnanya dreamt of studying at Harvard University but was unsure about the application process. With the help of The Student Helpline, she received personalized guidance on her application, essays, and interview preparation. Ananya’s hard work and The Student Helpline’s support paid off when she received her acceptance letter from Harvard.Raj’s Admission to University of TorontoRaj wanted to pursue a degree in engineering at the University of Toronto. The Student Helpline assisted him with course selection, application submission, and visa processing. Today, Raj is thriving at the University of Toronto, thanks to the comprehensive support he received.Priya’s Success at University of MelbournePriya aspired to study business management at the University of Melbourne. The Student Helpline provided her with detailed information about the university, helped her with the application process, and guided her through visa procedures. Priya’s dream became a reality, and she is now excelling in her studies.ConclusionIn the competitive world of international education, having the right guidance and support can make all the difference. The Student Helpline stands out as the best overseas education consultant in India, offering expert advice, comprehensive services, and personalized support to students. Their commitment to excellence and proven track record of success make them the ideal partner for anyone looking to study abroad. If you’re considering pursuing higher education overseas, reach out to The Student Helpline for the best possible guidance and support on your journey.
-
해결됨Flutter 앱 개발 실전
iterable추가자료
노션에서 iterable 더 둘러보라고 notion에서 링크 걸어주신 자료보면 가입은 했는데 다음 페이지를 읽으려면 멤버십 업그레이드를 하라고 해서요....
-
해결됨파이썬 알고리즘 트레이딩 파트2: Interactive Brokers API를 활용한 실시간 알고리즘 트레이딩
api연결하기 영상이 재생이 안되네요
다른강의는 재생이 되는데 api연결하기 영상이 재생이 안됩니다
-
미해결Practical Testing: 실용적인 테스트 가이드
개인적으로 궁금해서 질문드려요!
저번에 OrderService 작성 시, LocalDateTime.now()를 사용하는걸 보고나서 강의대로 따라 안하고 인터페이스로 한 번 감싸서, 테스트코드에서는 고정된 값을 넣어 검증할 수 있게 바꿨습니다. (사실, 이 때 AfterEach를 쓰지않고 그냥 @Transactional을 사용해서 테스트가 깨지는지 바로 몰랐어요. 그대로 안해서 죄송해요 ㅠ) IntegrationTestSupport로 환경통합하는 섹션 듣는중에, 변경감지가 동작하지 않아서 디버깅해보니깐, stock.deductQuantity에서 변경감지가 동작하지 않더라구요. @Transactional을 붙여서 해결은 했는데 왜 동작이 안한건지 궁금합니다. https://drive.google.com/file/d/1E9-pN1QbrCyZ1w2G5CSP7JtnB6c7SFPf/view?usp=drive_link
-
해결됨Next + React Query로 SNS 서비스 만들기
실무에서 리버스 인피니트 스크롤링 최적화 방법
채팅을 계속 올려서 몇개월 치를 사용자가 본다면 위로 채팅 기록이 엄청 쌓일텐데, 실무에서 메모리가 넘치는걸 방지하는 방법으로 사용하시는게 있는지 어떤걸 사용하시는지 궁금합니다.찾아보니 react-window 같은 라이브러리를 사용해서 실제 랜더링 하는 요소 갯수를 제한하고 스크롤을 유지 시켜서 성능 향상을 하는 글을 봤습니다. 실제로 실무에서 이런 방법을 주로 쓰는지 궁금합니다.
-
해결됨[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)
로그아웃 관련해서 질문 있습니다.
import {useEffect} from 'react'; import {useMutation, useQuery} from '@tanstack/react-query'; import {queryClient} from 'containers/TanstackQueryContainer.tsx'; import {getAccessToken, logout, postLogin, postSignup, socialLogin} from 'apis'; import {UseMutationCustomOptions} from 'types/mutations/common.ts'; import { numbers, removeEncryptStorage, removeHeader, setEncryptStorage, setHeader, } from 'utils'; import {queryKeys, storageKeys} from 'constants/storageKeys/keys.ts'; function useSignup(mutationOptions?: UseMutationCustomOptions) { return useMutation({ mutationFn: postSignup, throwOnError: error => Number(error.response?.status) >= 500, ...mutationOptions, }); } function useLogin(mutationOptions?: UseMutationCustomOptions) { return useMutation({ mutationFn: postLogin, onSuccess: data => { // 토큰 저장. const accessToken = data.result.accessToken; const refreshToken = data.result.refreshToken; setEncryptStorage(storageKeys.ACCESS_TOKEN, accessToken); setEncryptStorage(storageKeys.REFRESH_TOKEN, refreshToken); setHeader('Authorization', accessToken); }, onSettled: () => { queryClient.refetchQueries({ queryKey: [queryKeys.AUTH, queryKeys.GET_ACCESS_TOKEN], }); }, throwOnError: error => Number(error.response?.status) >= 500, ...mutationOptions, }); } function useSocialIdTokenLogin(mutationOptions?: UseMutationCustomOptions) { return useMutation({ mutationFn: socialLogin, onSuccess: ({result}) => { setHeader('Authorization', result.accessToken); setEncryptStorage(storageKeys.REFRESH_TOKEN, result.refreshToken); }, onSettled: () => { queryClient.refetchQueries({ queryKey: [queryKeys.AUTH, queryKeys.GET_ACCESS_TOKEN], }); }, throwOnError: error => Number(error.response?.status) >= 500, ...mutationOptions, }); } function useGetRefreshToken() { const {data, error, isSuccess, isError, isPending} = useQuery({ queryKey: [queryKeys.AUTH, queryKeys.GET_ACCESS_TOKEN], queryFn: getAccessToken, staleTime: numbers.ACCESS_TOKEN_REFRESH_TIME, refetchInterval: numbers.ACCESS_TOKEN_REFRESH_TIME, refetchOnReconnect: true, refetchIntervalInBackground: true, }); useEffect(() => { if (isSuccess) { setHeader('Authorization', `Bearer ${data?.result.accessToken}`); setEncryptStorage(storageKeys.ACCESS_TOKEN, data.result.accessToken); setEncryptStorage(storageKeys.REFRESH_TOKEN, data.result.refreshToken); console.log(isSuccess, '성공'); } }, [isSuccess]); useEffect(() => { if (isError) { removeHeader('Authorization'); removeEncryptStorage(storageKeys.REFRESH_TOKEN); } }, [isError]); return {isSuccess, isError, error, data, isPending}; } function useLogout(mutationOptions?: UseMutationCustomOptions) { return useMutation({ mutationFn: logout, onSuccess: () => { removeHeader('Authorization'); removeEncryptStorage(storageKeys.REFRESH_TOKEN); queryClient.resetQueries({queryKey: [queryKeys.AUTH, 'getAccessToken']}); queryClient.clear(); }, throwOnError: error => Number(error.response?.status) >= 500, ...mutationOptions, }); } function useAuth() { const signUpMutation = useSignup(); const loginMutation = useLogin(); const socialIdTokenMutation = useSocialIdTokenLogin(); const getNewAccessToken = useGetRefreshToken(); const logoutMutation = useLogout(); const isLogin = getNewAccessToken.isSuccess; const isLoginLoading = getNewAccessToken.isPending; return { signUpMutation, loginMutation, socialIdTokenMutation, isLogin, logoutMutation, isLoginLoading, getNewAccessToken, }; } export default useAuth; // RootNavigator.tsx import FeedTabNavigator from '../tab/FeedTabNavigator.tsx'; import AuthStackNavigator from '../stack/AuthStackNavigator.tsx'; import {useEffect} from 'react'; import SplashScreen from 'react-native-splash-screen'; import useAuth from '../../hooks/queries/AuthScreen/useAuth.ts'; export default function RootNavigator() { const {isLogin, getNewAccessToken} = useAuth(); console.log(isLogin); useEffect(() => { setTimeout(() => { SplashScreen.hide(); }, 1000); }, []); return <>{isLogin ? <FeedTabNavigator /> : <AuthStackNavigator />}</>; } 안녕하세요, 강사님, 강사님 강의를 전체 모두 듣고, 비슷한 느낌으로 풀스택으로 앱개발을 진행하고있습니다.강사님 강의처럼 쿼리를 활용하여 로그인 기능을 구현하고 싶어 useLogout훅에 onSettled를 넣었을 때는 강사님처럼 동일한 이상증상이 발생했고, 이를 해결하기 위해 강사님께서는onSuccess부분에queryClient.resetQueries({queryKey: [queryKeys.AUTH]});이 부분을 넣어주셔서 해결을하셨는데, 저는 해당 부분을 넣어도, 로그아웃이 되었다가, 바로 refreshToken으로 accessToken을 재발급받아, 로그인이 되지 않는 현상이 일어나고있습니다. clear()나 이런 것들을 활용했지만, 제대로 로그아웃이 동작하지 않아. 어떻게 해결할 수 있을지 의견을 구하고자 질문을 남깁니다.
-
해결됨직장인에게 꼭 필요한 파이썬-아래아한글 자동화 레시피
음 Action에 없는 내용들은 어떻게 활용해야할지 질문드립니다.
현재 문제자동적으로 여러개의 선택상자를 입력하고어떤것이 체크되었는지 확인하여 리턴할 것을 정해야하는 함수를 구현하려 합니다. 1번, 3번이 선택 되었다면 1, 3을 리턴하는 방식을 구현하려 했습니다. 제가 질문드린 내용을 구현하려면[HwpAutomation.hwp 내부 사진]다음사진에서 IHwpObject - IXHwpDocuments - IXHwpFormCheckButtons의IXHwpFormCheckButton:양식 개체 체크 버튼 오브젝트에서caption값을 수정하는 방법value 값을 리턴하는 것 여기에서 사실 XHwpDocuments.XHwpFormCheckButtons를 해야한다고 생각했는데 안되는거 같아서 혹여 이 부분을 참고하여서 개발을 하려면 어떻게 이해를 해야할까요 ㅠㅠ
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
h2 db table 생성안됨
h2 db 연결은 되었는데 member테이블 생성이 안됩니다. spring: #띄어쓰기 없음 datasource: #띄어쓰기 2칸 url: jdbc:h2:tcp://localhost/~/jpashop #4칸 username: sa password: driver-class-name: org.h2.Driver jpa: #띄어쓰기 2칸 hibernate: #띄어쓰기 4칸 ddl-auto: create #띄어쓰기 6칸 properties: #띄어쓰기 4칸 hibernate: #띄어쓰기 6칸 show_sql: true #띄어쓰기 8칸 format_sql: true #띄어쓰기 8칸 logging.level: #띄어쓰기 없음 org.hibernate.SQL: debug #띄어쓰기 2칸 # org.hibernate.type: trace #띄어쓰기 2칸 ```
-
미해결[핵집] 2025 빅데이터 분석기사(필기)_과목 1~2
통합 강의안 요청
강의 자료 통합본 자료 공유 요청드립니다. jungsu9017@gmail.com 감사합니다.
-
해결됨RAG를 활용한 LLM Application 개발 (feat. LangChain)
R.A.G를 통한 구현의 Scope 문의
저는 R.A.G를 통한 LLM 챗봇을 개발을 하기위해 본 강의를 수강하기 시작했는데 너무 유읙합니다. 이럴 경우에도 embedding을 해서 R.A.G를 통해 retrieve가 가능한지 여쭤보고 싶어요.데이터 크롤링 (컬럼 중에 리뷰데이터)의 데이터를 전처리해서 바로 Embedding을 통해 vector database에 넣어서 RAG를 활용할 수 있나요?결과물에 대한 시나리오는 User가 챗봇에게 피부관련 사진 또는 문제에 대해서 고민을 입력하면 특정 논문 (강사님 강의에서 tax 파일과 같은 의미)을 기반으로 답변을 주게 되며 동시에 특정 쇼핑몰의 화장품의 리뷰들을 요약해주며 해당 제품을 추천하는 형태의 서비스입니다.지금 생각으로는 데이터크롤링을 통해 긁어온 모든 자료들을 embedding해서 RAG할 수 있을 것 같은데 그것에 가능한지 궁금합니다.
-
미해결10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트
1-G 질문 드립니다
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.http://boj.kr/2fabda49b9824800982906f0ee7e106a어디가 틀린지 모르겠습니다...
-
해결됨Next.js 시작하기
스페이스 + 컨트롤 눌러도 활성화 안되시는분 참고하세요...
인텔리센스 단축키 (Intellisense shortcut)¶https://stackoverflow.com/questions/51341555/visualcode-shortcut-to-display-autocomplete-list-before-typing-in-macos인텔리센스 사용시 한영 전환(ctrl + space)와 스팟라이트(cmd + space) 단축키와 충돌이 발생하므로 (option + esc) 조합을 사용합니다.메인 메뉴 Code > Preferences > Keyboard Shortcuts (cmd + K, cmd + S)에서 단축키(Trigger Suggest)를 (ctrl + .)로 변경할 수 있습니다.
-
미해결C# OpenCV 컴퓨터비전 입문 강좌
20강 threshold 질문이요.
안녕하세요 대희님. 대희님 강의 들으며 컴퓨터비전 맛보고 있는 학생입니다.20강 수강하면서 질문이 생겼습니다. 7분 정도(강의 지점)에서 FindContour 메소드에서 bin 필드 정의할 때bin = this.Binary(src, 150); 이라고 Binary 메소드에 threshold를 150으로 주셨는데150 말고 다른 숫자 이것저것 넣어봤더니 88 미만의 숫자를 입력하면 polygon.png 이미지의 외부에 빨간선이 그려지고, 88 이상의 숫자를 입력하면 polygon.png 이미지의 2열 4행 사각형의 내부에 빨간선이 그려지더라구요.혹시 threshold를 150으로 준 이유가 있으실까요?