Skip to content

Instantly share code, notes, and snippets.

View ershadow786's full-sized avatar

Anmol Raghuvanshi ershadow786

View GitHub Profile
@morrisonlevi
morrisonlevi / small_ptr.hh
Last active August 29, 2015 14:27
A discriminated or tagged pointer that uses variadic templates and takes only 48 bits of memory.
#ifndef SMALL_PTR_HH
#define SMALL_PTR_HH
#include <cassert>
#include <cstdint>
#include <cstring>
static_assert(sizeof(void *) == 8, "Pointers must be 8 bytes");
static_assert(sizeof(uintptr_t) == 8, "uintptr_t must be 8 bytes");

You walk to your home and you want to share a TipRanks stock page with a friend on your phone, however you forgot your friend's email. You do remember it starts with "Gilad" followed by 4 positive integers whose squares are summed to 101 and are in descending order (what an odd way to remember someone's email) following @tipranks.com. Can you figure out Gilad's email?

Once you figure Gilad's email, send him an email saying you solved the challenge (add your CV for extra credit)!


We're looking for awesome full-stack developers to join our team!

TipRanks is a fintech startup in the Rotcheild area in Tel-Aviv. We're developing a cloud-based service that helps individual investors make better decisions. Our services are embedded in Bank Hapoalim, Bank Leumi, Excellence and several brokers abroad.