What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-24 14:45:18
How to create a leaflet map in javascript
var map = L.map('map').setView([51.505, -0.09], 13); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }).a... Add solution -
C++ 2022-01-24 03:50:27
how to compare the biggest node with the same level BST node c++
// C++ program to find largest // value on each level of binary tree. #include <bits/stdc++.h> using namespace std; /* A binary tree node has data, pointer to left child and a pointer to right child */ struct Node { int val; struct Node *left, *r... Add solution -
Other 2022-01-23 21:20:39
vernam cupher
# Vernam cypher demo # T Street 2015-10-16 def makeVernamCypher( text, key ): """ Returns the Vernam Cypher for given string and key """ answer = "" # the Cypher text p = 0... Add solution -
Python 2022-01-23 08:50:47
python 3 tkinter treeview example
# How to create a basic Treeview tv = Treeview(self) # could also include columns with tv['columns'] = 'Column2' # Treeview(master, column=('yourcolumnname')) tv.heading('#0', text='Heading1') # '#0' standard name for the first column tv.heading('Colu... Add solution -
C++ 2022-01-22 19:21:34
find height of a tree
int height(Node* root) { // Base case: empty tree has height 0 if (root == nullptr) return 0; // recur for left and right subtre... Add solution