What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-28 03:06:03
python split input to list
input_string = input('Enter elements of a list separated by space ') print("\n") user_list = input_string.split() # print list print('list: ', user_list) # convert each item to int type for i in range(len(user_list)): # convert each item to... Add solution -
Python 2021-09-27 00:24:01
python convert two dimensional list to one dimensional
# Python convert 2D into 1D array: import itertools x = [['foo'], ['bar', 'baz'], ['quux'], ("tup_1", "tup_2"), {1:"one", 2:"two"}] print list(itertools.chain(*x)) print [element for sub in x for element in sub] #... Add solution -
C 2021-09-09 02:12:03
circular linked list in c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> struct node { int data; int key; struct node *next; }; struct node *head = NULL; struct node *current = NULL; bool isEmpty() { return ... Add solution
Best helpers
Ranking is empty