What do you want to save?
Add Code snippet
New code examples
-
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 -
C++ 2022-01-23 10:55:18
calculator with c++
// This is for beginners #include <iostream> using namespace std; void greetings() { cout << "welcome to the calculator made in c++ :D\n"; } void instructions() { cout << "Here is the operators you can use + - ... Add solution -
Javascript 2022-01-22 03:52:00
node.js
NodeJs is Runtime environment for executing Js code, Outside Of Browser. it is build upon Chrome v8 engine using c++. Uses of Node: -can build back-end services like API which can be used as backend for diferent platform Apps(Website, MobileApp, Deskto... Add solution -
Python 2022-01-22 01:40:37
return a tuple c++ python 3
# C++ CODE void divide_modulo(int a, int b, int *div, int *rest) { *div = a / b; *rest = a % b; } # COMPILE WITH gcc -o libexample.so -shared example.c # OR C++ g++ -o libfoo.so -shared example.cpp # PYTHON 3.7 CODE import ctypes lib = ctypes.c... Add solution -
TypeScript 2022-01-22 00:15:10
when a vector in c++ is resized what happens to the elements of the vector
The C++ function std::vector::resize() changes the size of vector. If n is smaller than current size then extra elements are destroyed. If n is greater than current container size then new elements are inserted at the end of vector. If val is specified ... Add solution -
C++ 2021-11-21 17:07:24
concat string in c++
// with C++11 string result = name + std::to_string(age); Add solution -
Python 2021-11-21 11:46:29
filter array python
In simple words, the filter() method filters the given iterable with the help of a function that tests each element in the iterable to be true or not. Filter Methods is simply a like comprarator class of c++ STL Code Explanation: # A simple tutoria... Add solution -
C++ 2021-11-20 15:26:20
find_if c++ example
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { vector<int> myvec {2, 5, 6, 10, 56, 7, 48, 89}; vector<int>::iterator gt10 = find_if(myvec.begin(), myvec.end(), [](int x){retu... Add solution