Skip to content

Instantly share code, notes, and snippets.

@ra1ski
ra1ski / n-th-tribonacci-number.py
Created March 18, 2023 15:39
n-th-tribonacci-number.py
import pytest
class Solution:
params = [
(4, 4),
(5, 7),
(25, 1389537)
]
memo = {0: 0, 1: 1, 2: 1}
@ra1ski
ra1ski / n-th-tribonacci-number_test.go
Created March 18, 2023 15:38
n-th-tribonacci-number_test.go
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
type Parameters struct {
n int
expected int