Given a 2D integer array nums, return all elements of nums in diagonal order as shown in the below images.
You are given an array nums that consists of non-negative integers. Let us define rev(x) as the reverse of the non-negative integer x. For example, rev(123) = 321, and rev(120) = 21. A pair of indices (i, j) is nice if it satisfies all of the following conditions:
- 0 <= i < j < nums.length
- nums[i] + rev(nums[j]) == nums[j] + rev(nums[i])
Return the number of nice pairs of indices. Since that number can be too large, return it modulo 109 + 7.
1편에서는 DB와 Redis를 사용하여 MQ를 구현하는 방법에 대해 알아봤다.
DB와 Redis만으로도 충분히 MQ의 목적을 살릴 수 있지만
그보다 MQ에 특화된 솔루션인 RabbitMQ와 Kafka에 대해 알아보자.
요즘에는 프로젝트 Message Queue(MQ) 사용 시
Kafka를 가장 먼저 떠올리고 사용하는데
이게 때로는 특정 요구 사항을 고려할 때 항상 최선의 선택은 아니다.
You are given an array of strings words and a string chars.
A string is good if it can be formed by characters from chars (each character can only be used once).
Return the sum of lengths of all good strings in words.
Serverless 컴퓨팅은 쉽게 말해 서버를 관리하지 않고
어플리케이션을 구축하고 실행하는 패러다임을 말한다.
그래서 개발자는 어플리케이션 코드에 집중하고
클라우드 업체는 내부적으로 서버 프로비전닝, 모니터리 등을 담당한다.
그리고 지난 10년 동안 Serverless 배포는 크게 단순화되었다.