이 글은 책 내용을 토대로 작성하였습니다.
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.
이 글은 책 내용을 토대로 작성하였습니다.
이 글은 책 내용을 토대로 작성하였습니다.
이 글은 책 내용을 토대로 작성하였습니다.
Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1.