Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main()
{
int a = 2000000000;
int cc =1;
@kakysha
kakysha / flatten.go
Last active November 21, 2017 22:49
Go flatten slice implementation
package main
import (
"fmt"
"reflect"
)
// variadic argument to utilize Go slices expansion mechanism '...'
func flatten(input ...interface{}) (res []int) {
for _, val := range input {
#include <iostream>
#include <string>
#include <unistd.h>
#include <ctime>
#include <unordered_map>
#include <cds/init.h>
#include <cds/gc/hp.h>
#include "cds/opt/hash.h"
#include "cds/container/michael_list_hp.h"
#include "cds/container/split_list_map.h"