이전에 포스팅 한 “Redis를 MessageQueue로 활용하는 방법“글에서
Redis를 MessageQueue로 사용하는 3가지 방법에 대해 알아봤다.
사실 각 개념으로 보면 다 비슷해보이는 기능이라
언제 어떻게 다르게 사용해야하는거지?라는 생각이 들었고
그래서 각 방법별로 비교해보는 글을 작성하기로 하였다.
Software Maestro에 멘토로 지원을 하였다.
사실 작년에 지원해보려 했는데 경력이 만 5년이 넘지 않으면
시스템상으로 지원이 불가능하여 내년을 기약하자 했고 만 5년이 지난 올해 바로 지원을 하였다.
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
Implement the MinStack class:
MinStack() initializes the stack object.
void push(int val) pushes the element val onto the stack.
void pop() removes the element on the top of the stack.
int top() gets the top element of the stack.
int getMin() retrieves the minimum element in the stack.
You must implement a solution with O(1) time complexity for each function.
연재 글 목록
Production 환경에서 Redis를 사용하는 가장 효과적인 6가지 방법 - Cache, Session Store
Production 환경에서 Redis를 사용하는 가장 효과적인 6가지 방법 - Leaderboard, Message Queue
Production 환경에서 Redis를 사용하는 가장 효과적인 6가지 방법 - Website Analytics, Flash Sale
There is an m x n grid with a ball. The ball is initially at the position [startRow, startColumn]. You are allowed to move the ball to one of the four adjacent cells in the grid (possibly out of the grid crossing the grid boundary). You can apply at most maxMove moves to the ball.
Given the five integers m, n, maxMove, startRow, startColumn, return the number of paths to move the ball out of the grid boundary. Since the answer can be very large, return it modulo 109 + 7.