What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-09 08:38:01
ugly number code in c++
# include<iostream> using namespace std; int min(int x, int y, int z){ //find smallest among three numbers if(x < y){ if(x < z) return x; else &nbs... Add solution -
Other 2021-09-08 14:52:02
remove billing address for virtual product woocommerce
add_filter( 'woocommerce_checkout_fields' , 'bbloomer_simplify_checkout_virtual' ); function bbloomer_simplify_checkout_virtual( $fields ) { $only_virtual = true; foreach( WC()->cart->get_cart() as $cart_item_key => $cart_item )... Add solution -
Python 2021-09-07 11:12:01
python loop backwards
for i in range(len(item)-1, -1, -1): print(item[i]) Add solution -
TypeScript 2021-09-07 04:53:02
Describe a dynamic programming algorithm to determine the minimum number of coins to make c cents with coin denominations v1; v2; : : : vk.
INF = 100000 def min(x, y): if x < y: return x return y #k is number of denominations of the coin or length of d def coin_change(d, n, k): M = [0]*(n+1) for j in range(1, n+1): minimum = INF for i in range(1, k+1): if(j &g... Add solution -
Javascript 2021-09-06 13:04:02
nested json to csv python
import json import csv import requests response = requests.get('https://statsapi.web.nhl.com/api/v1/teams') json_data = response.json() def get_leaves(item, key=None): if isinstance(item, dict): leaves = {} for i in item.keys(): ... Add solution
Best helpers
Gabi Purcaru
+5
L. Samson
+5
Yoyo
+5
Skry
+5
Colocvial
+5
Sarah witte
+5
Leosar
+5
Tobiak777
+5
Tjd
+5