Skip to content

Instantly share code, notes, and snippets.

View lushiv's full-sized avatar

Janak raikhola lushiv

View GitHub Profile
@lushiv
lushiv / toolbox_week2.md
Created December 27, 2023 04:28 — forked from chrswt/toolbox_week2.md
Algorithmic Toolbox Week Two

Back to Overview of Toolbox


Fibonacci numbers

Problem overview

The fibonacci series is a classic series of numbers where the 0th element is 0, the 1st element is 1, and from thereon, each element is the sum of the previous two elements. For example, the following represents a fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 34, ...

Naive algorithm

@lushiv
lushiv / main.py
Created November 14, 2022 14:56
Assignment: Measuring vertical and horizontal length of hiking trips
## Assignment: Measuring vertical and horizontal length of hiking trips
# user can input the (i) name of a trip/mountain
print("Start the Script: [start]")
print("Stop the Script: [end]")
cmd = input("Enter your command: ")
cmd_list = []
cmd_list.append(cmd)
@lushiv
lushiv / HelloWorld.sol
Created November 13, 2022 13:47
HelloWorld sol
// My First Smart Contract
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0 <0.7.0;
contract HelloWorld {
uint inputNumber;
function storeNumber(uint x) public {
inputNumber = x;