Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's.
You must do it in place.
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.
이 글은 책 내용을 토대로 작성하였습니다.
개발하다 보면
“이거 이전에 겪었던 이슈인데…”
“이거 어떻게 해결했지?”라는 질문을 지속해서 하는 나를 발견했다.
대충 키워드라도 알면 빠르게 문제를 해결할 텐데
기록해둔건 없고 기억조차 나지 않다 보니 항상 반복된 삽집을 하게 된다.
그래서 이참에 개발하면서 맞이했던 이슈(Issue)들을 기록해두려고 한다.
이 글은 책 내용을 토대로 작성하였습니다.
A company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the ith person to city a is aCosti, and the cost of flying the ith person to city b is bCosti.
Return the minimum cost to fly every person to a city such that exactly n people arrive in each city.