What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-13 12:05:21
strictly increasing or strictly decreasing javascript
function is_monotonous(num) { if (num.length === 1) { return true; } const num_direction = num[1] - num[0]; for (let i = 0; i < num.length - 1; i++) { if (num_direction * (num[i + 1] - num[i]) <= 0) { retu... Add solution -
Other 2021-11-12 02:05:08
how to add footer only on first page latex
\documentclass{report} \usepackage{atbegshi} \usepackage{fancyhdr} \usepackage{lipsum} % just for the example \fancyhf{} \pagestyle{fancy} \AtBeginDocument{% \rfoot{Alim, from Unknown City}% \AtBeginShipoutNext{% \rfoot{}% }% } \begin{documen... Add solution -
Other 2021-11-09 19:39:29
huffman coding algorithm code
// Huffman Coding in C++ #include <iostream> using namespace std; #define MAX_TREE_HT 50 struct MinHNode { unsigned freq; char item; struct MinHNode *left, *right; }; struct MinH { unsigned size; unsigned capacity; struct MinHNode **... Add solution -
C 2021-11-08 16:13:14
write a program to add subtract any two matrices in c
#include <stdio.h> #include <stdlib.h> void main () { int i, j, m, n; char user_decision; int matrix1[10][10],matrix2[10][10],sum[10][10],diff[10][10]; printf("Enter number of rows : "); scanf("%d", &a... Add solution -
Python 2021-11-07 18:09:20
how to save form data to database in flask\
# routes.py import sqlite3 as sql from my_app import app from flask import render_template, request # connect to qa_database.sq (database will be created, if not exist) con = sql.connect('qa_database.db') con.execute('CREATE TABLE IF NOT EXISTS tbl_QA ... Add solution