This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdlib.h> | |
int compare(const void * a, const void * b) { | |
return (*(int*)a- *(int*)b); | |
} | |
int main() { | |
int n,k=21; | |
scanf("%d",&n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include<stdlib.h> | |
/* | |
Sample Input: 5 | |
Sample Output: | |
1 2 3 4 5 | |
17 18 19 20 6 | |
26 27 28 21 7 | |
14 24 23 22 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
n = 10 | |
space = n-1 | |
for i in range(n): | |
for j in range(space+1): | |
sys.stdout.write(" ") | |
for k in range(i): | |
sys.stdout.write("* ") | |
space -= 1 | |
sys.stdout.write("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React,{useEffect, useState} from 'react'; | |
import axios from 'axios'; | |
// import logo from './logo.svg'; | |
import './App.css'; | |
const App = () => { | |
const [countriesData,setCountriesData] = useState([]) | |
const [country, setCountry] = useState([]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React,{useState, useEffect} from 'react'; | |
import Note from './components/Note' | |
import axios from 'axios' | |
const App = () => { | |
const [notes,setNotes] = useState([]) | |
const [newNote,setNewNote] = useState('') | |
const [showAll,setShowAll] = useState(true) | |
const hook = ()=> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Sample</title> | |
<style> | |
div#div-1 { | |
border: 1px solid black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask,render_template | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return render_template("index.html") | |
@app.route("/first") | |
def first(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Hello World!" | |
@app.route("/first") | |
def first(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Hello, World!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
sample = """ The company was also broadcasting the translations live online using a computer-synthesized voice, | |
instead of the original human interpreters’ voices. Wang took pictures and videos as evidence.""" | |
sample_mod = [] | |
sample_mod = sample.split(" ") | |
punct = [",",".",":","?","!"] |