There is a directed graph of n nodes with each node labeled from 0 to n - 1. The graph is represented by a 0-indexed 2D integer array graph where graph[i] is an integer array of nodes adjacent to node i, meaning there is an edge from node i to each node in graph[i].
A node is a terminal node if there are no outgoing edges. A node is a safe node if every possible path starting from that node leads to a terminal node.
Return an array containing all the safe nodes of the graph. The answer should be sorted in ascending order.
You are keeping score for a baseball game with strange rules. The game consists of several rounds, where the scores of past rounds may affect future rounds' scores.
At the beginning of the game, you start with an empty record. You are given a list of strings ops, where ops[i] is the ith operation you must apply to the record and is one of the following:
An integer x - Record a new score of x.
"+" - Record a new score that is the sum of the previous two scores. It is guaranteed there will always be two previous scores.
"D" - Record a new score that is double the previous score. It is guaranteed there will always be a previous score.
"C" - Invalidate the previous score, removing it from the record. It is guaranteed there will always be a previous score.
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).
이 글은 책 내용을 토대로 작성하였습니다.
대용량 데이터셋을 파티셔닝하는 방법
인덱싱과 파티셔닝의 상호작용 방법
클러스터에 노드 추가/삭제 시 재균형화 과정
DB가 어떻게 요청을 올바른 파티션에 전달 및 질의를 하는지 그 실행 과정에 대학 학습
이 글은 굉장히 주관적으로 작성되어있습니다.
그러니 혹여나 글을 읽으시고 맘에 안 드시는 부분이 있으면
가볍게 무시해주시거나 댓글로 의견을 주시면 감사하겠습니다.
그러면 지금부터 나름의 🐕소리를 시작해보겠습니다.
이 글은 책 내용을 토대로 작성하였습니다.
대용량 데이터셋을 파티셔닝하는 방법
인덱싱과 파티셔닝의 상호작용 방법
클러스터에 노드 추가/삭제 시 재균형화 과정
DB가 어떻게 요청을 올바른 파티션에 전달 및 질의를 하는지 그 실행 과정에 대학 학습