Skip to content

Instantly share code, notes, and snippets.

View rdgarce's full-sized avatar
🎯
Focusing

Raffaele rdgarce

🎯
Focusing
View GitHub Profile
@rdgarce
rdgarce / main.c
Created April 6, 2026 13:33
Robot Return to Origin: Switch vs Table
#include "profiler.h"
#include <string.h>
#include <stdbool.h>
#define X_ONE 1ULL
#define Y_ONE (1ULL << 32)
static bool judge_switch(const char *moves, size_t len)
{
uint64_t pos = 0;