일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 실업급여
- 회사폐업
- leetcode
- 전화영어
- IT기초
- 생애첫계약
- 네트워크
- array
- 알고리즘
- 코딩테스트
- 후니의쉽게쓴시스코네트워킹
- 부분합알고리즘
- 청년내일채움공제
- 모여봐요동물의숲
- 순열
- 동적계획법
- 캡쳐링
- C++
- 후니의쉽게쓴시스코라우팅
- 정보처리기사개정
- 막대기자르기
- 자취준비
- 정보
- 프로그래머스
- 실업인정인터넷신청
- HeadFirstDesignPatterns
- 자료구조
- 취업사실신고
- 튜터링
- 사회초년생
- Today
- Total
목록array (7)
따봉도치야 고마워
문제 입력받은 오름차순 정수 배열 nums에서 중복된 값을 제거하세요. 배열의 사이즈를 변경하지 못하는 언어일 경우, 배열의 첫 요소부터 결과를 저장하고 결과 값의 개수 k를 반환하세요. 다른 배열에 추가 메모리를 할당하지 말고 해결하세요. Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same. Since it is impossible to change the length of the array in som..
문제 정수 배열 nums와 정수 val을 제공받아, nums에서 모든 val 값을 제거하세요. 배열의 사이즈를 변경하지 못하는 언어일 경우, 배열의 첫 요소부터 결과를 저장하고 결과 값의 개수 k를 반환하세요. 다른 배열에 추가 메모리를 할당하지 말고 해결하세요. Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed. Since it is impossible to change the length of the array in some languages, you must instead have the r..
문제 오름차순으로 정렬된 두 개의 정수 배열 nums1, nums2와 각 배열의 사이즈를 의미하는 m, n 을 입력받는다. nums1과 nums2를 하나의 오름차순 배열로 합쳐라. 새로운 값으로 반환하지 않고, nums1에 합친다. 최종적으로 nums1은 m+n 의 요소를 가져야 하며, 처음에 제공되는 nums1에서 끝에서 n만큼의 요소는 0으로 세팅 된다. You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively. Merge nums1 and num..
문제 길이가 고정된 정수 배열이 주어졌을 때, 모든 0을 복제하고, 나머지 요소는 오른쪽으로 한 칸씩 이동하세요. 아무 값도 반환하지 말고, 입력받은 배열을 직접 수정하세요. Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond the length of the original array are not written. Do the above modifications to the input array in place and do not return anything. Example 1: Input: ar..
문제 오름차순의 숫자 배열이 주어졌을 때, 각 숫자의 제곱을 오름차순으로 반환해라 Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] Explanation: After squaring, the array becomes [16,1,0,9,100]. After sorting, it becomes [0,1,9,16,100]. Example 2: Input: nums = [-7,-3,2,3,11] Output..
문제 숫자 배열이 주어지면, 짝수 자리인 수의 개수를 반환해라 Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: nums = [12,345,2,6,7896] Output: 2 Explanation: 12 contains 2 digits (even number of digits). 345 contains 3 digits (odd number of digits). 2 contains 1 digit (odd number of digits). 6 contains 1 digit (odd number of digits). 7896 contains 4 digits (even..
문제 이진 배열이 주어지면 배열에서 1이 최대로 연속되는 수를 반환해라 Given a binary array nums, return the maximum number of consecutive 1's in the array. Example 1: Input: nums = [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three digits are consecutive 1s. The maximum number of consecutive 1s is 3. Example 2: Input: nums = [1,0,1,1,0,1] Output: 2 Constraints: 1