What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-01-26 05:31:20
react functional components modal
import React, { useEffect } from "react";import { createPortal } from "react-dom";import styled from "styled-components";import PropTypes from "prop-types"; const Portal = ({ children }) => { const modalRoot = ... Add solution -
C# 2022-01-26 05:07:08
function pointers in C#
delegate int Func1(string s); delegate Func1 Func2(Func1 f); // Function pointer equivalent without calling convention delegate*<string, int>; delegate*<delegate*<string, int>, delegate*<string, int>>; // Function pointer equival... Add solution -
Other 2022-01-24 05:20:37
PntIDNumbers
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <sstream> #define MAX 200 using namespace std; // Function receive address of the first element of an array // Reads file contents and store... 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 -