You are given two lists a and b with integers, that also can be negative, and a target sum.
Task:
- find a function that returns true if two numbers in the list can be added to build the target sum.
#!/usr/bin/env python3 | |
import math | |
from itertools import accumulate | |
from functools import reduce | |
points = [(1,2), (2,1), (5,3)] | |
# points = [[1,2], [2,1], [5,3]] | |
print(points) |
CMAKE_MINIMUM_REQUIRED(VERSION 3.4) | |
PROJECT(cycle-and-reverse) | |
SET(CMAKE_CXX_STANDARD 14) | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
set(CMAKE_AUTOMOC ON) | |
set(CMAKE_AUTORCC ON) |
CMAKE_MINIMUM_REQUIRED(VERSION 3.4) | |
PROJECT(align-objects) | |
SET(CMAKE_CXX_STANDARD 14) | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
set(CMAKE_AUTOMOC ON) | |
set(CMAKE_AUTORCC ON) |
#!/usr/bin/python3 | |
import os | |
import sys | |
import datetime | |
import argparse | |
import yaml | |
import json | |
import subprocess | |
import tempfile |
<VirtualHost *:80> | |
# Indexes + Directory Root. | |
#DirectoryIndex index.html index.php | |
DocumentRoot /home/ale/docs/htdocs/graphicslab/htdocs/ | |
<Directory /home/ale/docs/htdocs/graphicslab/htdocs/ > | |
# Options FollowSymLinks | |
# AllowOverride FileInfo Options | |
Options Indexes FollowSymLinks | |
AllowOverride AuthConfig FileInfo |
the scribus-core code is currently structured as foolows: | |
+ impagina-core/ | |
- impagina-core.pro | |
- main.cpp | |
- scribus.cpp | |
- scribus.h | |
+ document/ | |
- document.cpp |
{ | |
"name": "aoloe/mustache-test", | |
"require" : { | |
"mustache/mustache" : "~2.5" | |
} | |
} |
<?php | |
/* | |
Target: | |
******* | |
Perfect solution for a simple WP event manager | |
Needs: | |
****** |
// type names and scores | |
#include "std_lib_facilities.h" | |
int main(){ | |
vector<string> names; | |
vector<int> scores; | |
string name; | |
int score; |