Skip to content

Instantly share code, notes, and snippets.

View NicolaBernini's full-sized avatar
🎯
Focusing

Nicola Bernini NicolaBernini

🎯
Focusing
View GitHub Profile
@NicolaBernini
NicolaBernini / Dockerfile
Created May 22, 2021 13:23
Test 20210522
FROM rust:1.31
WORKDIR /usr/src/myapp
@NicolaBernini
NicolaBernini / readme.md
Created January 15, 2021 12:02
Solution to Hackerrank Inserting a Node Into a Sorted Doubly Linked List

Inserting a Node Into a Sorted Doubly Linked List

hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem

@NicolaBernini
NicolaBernini / bubble_sort.scala
Created January 2, 2021 15:00
My Bubble Sort Implementation in Scala
// Start writing your ScalaFiddle code here
def bubble_sort[T <% Ordered[T]](src: List[T]): List[T] = {
def my_bs[T <% Ordered[T]](src: List[T], res: List[T], is_swapped: Boolean): List[T] = {
src match {
case Nil => res
case s::Nil => is_swapped match {
case true => my_bs(res:+s, List.empty, false)
case false => res:+s
}
case x::xs => x.compareTo(xs.head) match {
@NicolaBernini
NicolaBernini / readme.md
Last active November 20, 2020 06:40
Riemannian Geometry and Machine Learning - An Introduction

Riemannian Geometry and Machine Learning - An Introduction

A summary of the notes I have taken while studying the intersection between these 2 topics

NOTE: This is still work in progress but please follow if you are interested in the topic

@NicolaBernini
NicolaBernini / readme.md
Created August 2, 2020 09:13
Solution to the Hackerrank - Arrays: Left Rotation
@NicolaBernini
NicolaBernini / readme.md
Last active August 1, 2020 15:02
Power Set Computation

Computation of the Power Set of a Set

Given a set V compute its power set

@NicolaBernini
NicolaBernini / readme.md
Created August 1, 2020 06:49
Solution to Hackerrank 2D Array - DS
@NicolaBernini
NicolaBernini / readme.md
Last active August 1, 2020 06:19
Analysis of An Optimistic Perspective on Offline Reinforcement Learning
@NicolaBernini
NicolaBernini / readme.md
Created January 28, 2020 11:22
Comnpute the power set of a set

Overview

Compute the Power Set of a Set in CPP