What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-18 08:14:03
python sort list in place
# Basic syntax: your_list.sort() # Example usage: your_list = [42, 17, 23, 111] your_list.sort() print(your_list) --> [17, 23, 42, 111] # If you have a list of numbers that are of type string, you can do the # following to sort them numerically witho... Add solution -
Javascript 2021-09-17 15:37:05
python functions list
list.append(x) # append x to end of list list.extend(iterable) # append all elements of iterable to list list.insert(i, x) # insert x at index i list.remove(x) # remove first occurance of x from list list.pop([i]) # pop element at index i (defaults to end... Add solution -
Java 2021-09-17 02:37:02
java solution milk the cow
import java.util.*; import java.io.*; /* ID: coconut LANG: JAVA TASK: milk2 */ public class milk2 { static farmer[] farmers; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(new File("milk2.in")... Add solution -
Other 2021-09-16 17:59:01
form largest number from array in pyhton
1234567891011121314151617181920212223242526class Num: def __init__(self, v): self.val = str(v) def __lt__(self, other): return self.val + other.val < other.val + self.valclass Solution: def largestNumber(self, A): num... Add solution
Best helpers
Ranking is empty