C++ links: Coroutines
https://github.com/MattPD/cpplinks / C++ Standard / C++20 / Coroutines
(draft; work in progress)
#coroutines (C++ Slack): https://cpplang.slack.com/archives/C5JS5JXT5
https://github.com/MattPD/cpplinks / C++ Standard / C++20 / Coroutines
(draft; work in progress)
#coroutines (C++ Slack): https://cpplang.slack.com/archives/C5JS5JXT5
Most example code taken from A Tour of Go, which is an excellent introduction to Go. If you're new to Go, do that tour. Seriously.
import java.util.*; | |
import java.util.stream.Collectors; | |
public class AmazonSolution2 { | |
List<List<Integer>> optimalUtilization(int deviceCapacity, | |
List<List<Integer>> foregroundAppList, | |
List<List<Integer>> backgroundAppList) { | |
List<List<ComplexCapacity>> foundCapacities = new ArrayList<>(); | |
foregroundAppList.forEach(forApp -> foundCapacities.add(getMemUsage(forApp, backgroundAppList))); | |
List<List<Integer>> exactCapacity = new ArrayList<>(); |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.TreeMap; | |
public class AmazonSolution1 { | |
List<List<Integer>> ClosestXdestinations(int numDestinations, | |
List<List<Integer>> allLocations, | |
int numDeliveries) { |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |