Skip to content

Instantly share code, notes, and snippets.

@Evan-Kim2028
Evan-Kim2028 / .py
Created July 23, 2019 15:11
My Solution
# This is an O(n^2 * m) runtime, but it can be decreased to O(n*m)
from typing import List
coin_list = [1,4,5]
target = 12
def coin_solution_hard(coin_list_start: List[int], target: int) -> int:
"""
Input: coin_list_start = list of sorted coin values in a List \\
@Evan-Kim2028
Evan-Kim2028 / 2.py
Created July 23, 2019 15:11
other solution
# A Dynamic Programming based Python3 program to
# find minimum of coins to make a given change V
import sys
# m is size of coins array (number of
# different coins)
def minCoins(coins, V):
# table[i] will be storing the minimum
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Evan-Kim2028
Evan-Kim2028 / subground_doc_example.ipynb
Created March 8, 2023 18:55
subground_doc_example pagination error
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Evan-Kim2028
Evan-Kim2028 / gist:ff2c752b236ee95d05d56b322ab44f36
Created March 9, 2023 18:00
pagination error with larger query size
{
"cells": [
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"from subgrounds import Subgrounds\n",
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from subgrounds import Subgrounds\n",
"from subgrounds.schema import TypeRef\n",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.