def npr(n, r): return factorial(n) // factorial(n-r) def npr(n, r): result = 1 for i in range(r): result *=
class Solution: def singleNumber(self, nums: List[int]) -> int: return sorted(nums, key=lambda e:nums.count(e))[0]
Answer Keys || Date:07-10-2023 Question Answer Q1. C Q2. B Q3. B Q4. C Q5. A Q6. C Q7
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>G
class Solution { function divide($dividend, $divisor) { if(intval($dividend/$divisor) > 2**31-1){ return
class Solution: def getLucky(self, s: str, k: int) -> int: n = "" for c in s: n += str(ord(c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<?php // foreach loop in php $arr = array('Apple','Banana','Grapes','Mango'); //this is a simply a for loop that us
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>P
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Menu Example</title> <link rel
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" c
<!DOCTYPE html> <html> <head> <title>Register</title> <link rel="icon" type="image/x-icon" href="download.png"> <link re
<html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html> <html lang="en" onclick="jump()"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" conte
def is_even(n: int) -> bool: if n == 1: return False if n == 0: return True return is_even(n-2) def
<canvas id="gc" width="600" height="600"></canvas> <script> window.onload=function() { canv=document.getElementById("gc");
<!DOCTYPE html> <html> <head> <title>My Web Page</title> </head> <body> <h1>Welcome to My Web Page</h1> <p>Th
def digital_sum(n: int): s = 0 while n: s += n % 10 n //= 10 return s def digital_sum(n: int):
SELECT name, population, area FROM world WHERE area >= 3000000 or population >= 25000000;
<!-- Based on Learn How To Build A Website In 1 Hour! by Kyle Cook - Web Dev Simplified (2019) see: https://www.youtube.com/watc
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <ti
<HTML> <HEAD> <TITLE>Thoughts</TITLE><meta name="viewport" content="width=device-width,initial=scale=1"> </head> <center><h1
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>S
<!-- Based on Mobile-First Responsive Build (with CSS Grid) by Shaun Pelling - The Net Ninja (2020) see: https://www.youtube.com
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Menu Example</title> <meta name="viewport" co
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<div id="main"> <h1>Momos khane chaloge ?</h1> <button id="yes" onclick="yes()"> Yes </button> <button id="no"
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>T
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<?php session_start(); if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] != true){ header("location:logi
func sumOfUnique(nums []int) int { var sum int = 0; for i := 0; i < len(nums); i++ { var u bool = true
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>Word Guess Game</title> <link rel="stylesheet" href
<html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<?php $name = "Dj"; //String $salary = 5000000; //Interger $experience = 1.5; //Float $bonus = "50.25k";//Decim
def sqrt(n): return n ** 0.5 def sqrt(n): return n ** (1/2) def sqrt(n :int): i = 0 while i*i < n: i +
<!DOCTYPE html> <html> <head> <title>JavaScript Interactive Demo</title> <style> /* Custom CSS for the butt
**Title:** SEO and Content Marketing Professional **Contact:** @coderai **Summary:** Highly accomplished SEO and Content Mar
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="I
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title><
<html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Flappy Bird</title> <link rel="sty
<!DOCTYPE html> <html lang="en" class=""> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=dev
def is_perfect_square(n): sqrt = int(n ** 0.5) return sqrt * sqrt == n
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>Color Game</title> <link rel="stylesheet" href="htt
<!DOCTYPE html> <html> <head> <title>Login</title> {% include "stylesheet.html" %} <style> </style> </head> <bo
def is_leap(year): if year%100==0: if year%400==0: return True else: return False
<html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
<html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1">
class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(len(nums)):
from flask import request from flask_sqlalchemy import * from datetime import datetime from pygments import highlight, lexers, f
class Solution: def areOccurrencesEqual(self, s: str) -> bool: fa = s.count(s[0]) for c in set(s):
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>D
<?php //for connection to database $servername = "localhost"; $username = "root"; $password = ""; $database
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
def whr(waist: "cm", hip: "cm"): return waist / hip
<div id="main"> <h1>DATE pr chle ?</h1> <button id="yes" onclick="yes()"> Yes </button> <button id="no" onmouseov
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>P
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
class Solution: def reverseVowels(self, s: str) -> str: rvs = "" for c in s[::-1]: if c in "
class Solution: def findChampion(self, grid: List[List[int]]) -> int: n = len(grid) strongerthancount = [
from random import randint from requests import get from models import users, files, db from os import remove, system, path from
<!DOCTYPE html> <html> <head> <title>Vibration Button</title> </head> <body> <button id="vibrateButton"><h1>Vibrat
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Bubble Shooter Game</title> <!-- Linking CSS & JS --> <script type='
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width
/** * @param {number} num1 * @param {number} num2 * @return {number} */ var sum = function(num1, num2) { return nu
<html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>E
class Solution: def kthDistinct(self, arr: List[str], k: int) -> str: distinct = [] for c in arr:
SELECT user_id, CONCAT(UPPER(LEFT(name,1)),LOWER(SUBSTRING(name,2))) AS name FROM Users ORDER BY user_id;
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Login Example</title> <meta na
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,
object Solution { def sum(num1: Int, num2: Int): Int = { return num1 + num2; } }
<!DOCTYPE html> <html> <head> <link rel="shortcut icon" href="assets/hangman-game.png" type="image/x-icon"> <link rel="s
<?php //while loop $i = 1; while($i<=10){ echo $i. "\n"; $i++; } ?>
<?php //Cookies setcookie('category','name',time() + 86400,'/'); echo 'cookies is set'; ?>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>C
select class from courses group by class having count(class) >= 5
# @param {Integer} num1 # @param {Integer} num2 # @return {Integer} def sum(num1, num2) return num1 + num2 end
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>W
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
def encrypt_rot13(text): cipher = "" for char in text: if char.isalpha(): offset = 65 if char.isuppe
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>C
<!--index.html--> <!DOCTYPE html> <html lang="en"> <head> <title>Maths Game</title> <meta charset="utf-8"> <meta na
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <ti
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Footer 03 Example</title> <me
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>J
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <met
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initi
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Vertical Tabs</title> <meta n
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>Block Runner game</title> <script src="https://cdnj
#Calculate the factorial of given number def factorial(n: int) -> int: if n == 0: return 1 return factorial(n-1
<?php // Connecting to the Db $servername = "localhost"; $username = "root"; $password = ""; $database = "f
<html> <head> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/main.css
<?php $a = 5; $b = 2000; $c = 2016; if($a > 2){ echo "a is greater than 2\n"; } else{
<?php $age = 30; switch($age){ case 18: echo "You are eligible for vote\n"; break;
**Description:** CoderAI is a subreddit dedicated to artificial intelligence as it relates to coding. It is a place for people
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <ti
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" hr
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initia
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,