Aanchal Patial
Aanchal Patial

Jun 3, 2020

·
1 min read

Day 3 of June LeetCode Challenge

There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th person to city B is costs[i][1].

Return the minimum cost to fly every person to a city such that exactly N people arrive in each city.

Leetcode
Algorithms
Data Structures
Sorting

--

--

More from Aanchal Patial

We never really grow up, we only learn how to act in public

Recommended from Medium

Postmates

Postmates

in

Postmates

Introducing Our New York Fleet Advisory Board Board Members

Arcadier Marketplaces

Arcadier Marketplaces

An Engaged Customer User Base — Key To Online Marketplace Success

JoeSupplyChain

JoeSupplyChain

Autonomous Trucks: Smokey and the Bandit are dying…

Michael Linares

Michael Linares

Tech debt is eating the world

Jess Eunse

Jess Eunse

6 Companies That You Can Rely On This Holiday Gift Shopping Season

Chic woman holding lots of shopping bags
Dave Gershgorn

Dave Gershgorn

in

OneZero

A Year After an HR Crisis, Microsoft Employees Say They’re Still Waiting for Change

Postmates

Postmates

in

Postmates

Postmates Launches Fresh — curated groceries & essentials in minutes

Jeff Nolan

Jeff Nolan

Otto: The $700 door lock that was not to be

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
Aanchal Patial

Aanchal Patial

13 Followers

We never really grow up, we only learn how to act in public

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech