
내돈내산 솔직리뷰 강릉 해미가 물회 리뷰 속초 완도 회식당 위치(주차장은 건물 뒤편 공영주차장) 가게 안에 들어가면 번호표 뽑는 곳이 있습니다. 5명 이상부터 뽑으라는 소리가 있는데, 몇 명이시던 그냥 뽑으시면 됩니다. 11시 19분에 받았는데, 11시 50분쯤 재료 소진으로 더 이상 번호표를 배부하지 않았습니다. (방문일 토요일) 대기 19명 기준, 대기시간 약 30~40분 소요 HTML 삽입 미리보기할 수 없는 소스 휴무 : 없음 영업시간 : 매일 9:00 ~ 14:00 ( 라스트 오더 13:30 ) / 11시 50분에 재료소진으로 마감 주차 : 가게 뒷편 갓길 주차라인, 가게 앞 2~3대, 앞집 절대 주차불가 재방문 의사 - 속초에 거주했다면, 가끔 방문했을 것 같다. 후기 횟감이 아주 신선하다. ..

Question Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left to right. Integers in each column are sorted in ascending from top to bottom. m x n 정수 행렬 행렬에서 값 대상을 찾는 효율적인 알고리즘을 작성하십시오. 이 행렬에는 다음과 같은 속성이 있습니다. 각 행의 정수는 왼쪽에서 오른쪽으로 오름차순으로 정렬됩니다. 각 열의 정수는 위에서 아..
Question 중복 원소 없애기 정렬되어 있지 않은 연결 리스트가 주어졌을 때 이 리스트에서 중복되는 원소를 제거하는 코드를 작성하라. Solution 가능한 최선의 수행 시간(Best Conceivable Runtime(BCR) 모든 리스트의 요소들을 다 확인해봐야 하기 때문에 리스트의 최대길이를 n이라 했을 때 O(n)이다. 고려사항 리스트 원소의 자료형을 int 타입으로 가정한다. Solution1 (Bruth Force) 가장 간단한 방법이다. 첫 요소부터 순차적으로 탐색하며 같은 원소가 있으면 연결해주는 방식이다. 이 방식은 버퍼를 사용하지 않지만, 공간 복잡도에서 이득이 있다. void solution(ListNode* head) { while(head !=NULL){ ListNode* co..

Question Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1]. You must write an algorithm with O(log n) runtime complexity. 오름차순으로 정렬된 정수 배열이 주어지면 주어진 목표 값의 시작 위치와 끝 위치를 찾습니다. 배열에서 target을 찾을 수 없으면 [-1, -1]을 반환합니다. 시간 복잡도가 O(log n)인 알고리즘을 작성해야 합니다. 제약사항 0

Question A peak element is an element that is strictly greater than its neighbors. Given a 0-indexed integer array nums, find a peak element, and return its index. If the array contains multiple peaks, return the index to any of the peaks. You may imagine that nums[-1] = nums[n] = -∞. In other words, an element is always considered to be strictly greater than a neighbor that is outside the array..

Question Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain duplicate triplets. integer 변수로 이루어진 배열 nums 가 주어질 때 i != j, i != k, j != k 이고 nums[i] + nums[j] + nums[k] == 0 인 모든 세 쌍 [nums[i], nums[j], nums[k]] 을 return 하라 제약사항 3

Question You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1. You may assume that you have an infinite number of each kind of coin. 다른 단위의 동전을 나타내는 정수..

Question There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom-right corner (i.e., grid[m - 1][n - 1]). The robot can only move either down or right at any point in time. Given the two integers m and n, return the number of possible unique paths that the robot can take to reach the bottom-right corner. T..
Question 비트 뒤집기 어떤 정수가 주어졌을 때 여러분은 이 정수의 비트 하나를 0에서 1로 바꿀 수 있다. 이때 1이 연속으로 나올 수 있는 가장 긴 길이를 구하는 코드를 작성하라. ex) input: 1775 ( 11011101111 ) output : 8 제약사항 고려사항 주어진 정수의 자료형 이 무엇인지 ? : int로 가정하고 푼다. Solution 가능한 최선의 수행 시간(Best Conceivable Runtime(BCR) 최소 주어진 정수의 자료형의 가능한 bit수만큼은 탐색해야 한다. Solution1 (Bruth Force) 가장 쉽게 생각할 수 있는 solution은 모든 0에 1을 넣어보고 가장 긴 연속된 1의 개수를 찾는 것이다. 그렇다면 0의 개수만큼 반복해야 하기 때문에 ..
보호되어 있는 글입니다.

모든 예제는 윈도우 환경에서 실행하였습니다. 러스트의 Hello World 아래 명령어를 실행해 새로운 프로젝트를 만든다 cargo new hello2 cd hello2 // 새로 만든 프로젝트로 이동 src/main.rs 파일을 텍스트 편집기로 연다 아래 예제를 작성한다 cargo run 으로 실행 fn greet_world() { println!("Hello, world!"); let southern_germany = "Grüß Gott"; let korean = "헬로 월드!"; let region = [southern_germany, korean]; for region in region.iter(){ println!("{}", ®ion); } } fn main(){ greet_world() ..

내돈내산 솔직리뷰 강릉 해미가 물회 리뷰 강릉 해미가 위치(주차장도 바로 뒤) 휴무 : 매주 일요일 영업시간 : 매일 11:00 ~ 21:00 / 라스트 오더 20:00 / 11시 5분에 갔는데 만석이였다. 조금 일찍 여는 것 같다. 주차 : 매장 뒤편 주차장 및 매장 근처 주차 가능. 사진 속 단속 시간 참고 재방문 의사 : 강릉에 거주했다면, 자주 방문했을 것 같다. 한 줄 후기 : 물회가 보통 얼마 하는지 모르지만 가성비가 좋다고 생각했다. 새콤달콤하고 입맛이 살아난다. 맛있는 물회 집이지만 감동할 정도는 아니다.

Question You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position. Return true if you can reach the last index, or false otherwise. 정수 배열 숫자가 제공됩니다. 처음에는 배열의 첫 번째 인덱스에 위치하며 배열의 각 요소는 해당 위치에서 최대 점프 길이를 나타냅니다. 마지막 인덱스에 도달할 수 있으면 true를 반환하고 그렇지 않으면 false를 반환합니다. 제약사항 1
Question Debuger 다음 코드가 하는 일을 설명하라 (( n & (n-1)) == 0) 제약사항 Solution Solution 먼저 A & B의 연산 결과가 0 이란 뜻은 A와 B의 사이에 공통된 비트가 없다는 뜻이다. 그렇다면 A와 B의 의미에 대해 자세히 보면 n에서 1을 뺀다는 것은 n의 비트 값이 1인 것 중 최하위 비트에서 1을 뺀다는 의미이다. 그 수와 &연산을 하면 그 아랫 값들이 모두 0이 된다는 소리이다. 예를 들어, n 이 110101010111 이라고 하면 110101010100 : (n) 110101010011 : (n-1) --------------------------- 110101010000 : (n) & (n-1) 즉, 회색 표시 위의 값엔 영향을 안미치고, 이를..
- Total
- Today
- Yesterday
- 리트코드
- C++
- 속초 맛집
- 솔직후기
- 트리
- Interview
- Problem Solving
- 내돈내산
- 인터뷰
- coding interview
- algorithm
- 알고리즘
- DP
- 러스트 배우기
- 코딩인터뷰
- rust
- interview question
- Tree
- 러스트 입문
- 자료구조
- ProblemSolving
- Medium
- 기술면접
- LeetCode
- 맛집
- PS
- 반드시 알아야 할 자료구조
- 러스트 기초
- 속초
- 러스트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |