Skip to content

Instantly share code, notes, and snippets.

@kt-aakash
kt-aakash / index.html
Created June 25, 2017 05:45 — forked from anonymous/index.html
qjRvwx
<meta name="viewport" content="width=device-width, initial-scale=1">
<div class="container-fluid bg">
<h3 class="text-center">Who Am I ?</h3>
<div class="div1 text-center">
<div class="div2">
</div>
@kt-aakash
kt-aakash / greedy.c
Created July 23, 2017 14:54
cs50 pset1 greedy.c
#include<stdio.h>
#include<cs50.h>
int penny(int n, int temp)
{
if(n>=25){
n -= 25;
temp++;
@kt-aakash
kt-aakash / factorize.js
Created July 26, 2017 08:11
An example of recursion
function factorialize(num) {
if(num>1)
return num*factorialize(num-1);
else
return 1;
}
factorialize(3);
@kt-aakash
kt-aakash / factorialize.js
Created July 26, 2017 09:34
A virtual illustration of a recursive function
function factorialize(3) {
if(3>1)
return 3*factorialize(2){ //**********This staten=ment gets executed SINCE 3 > 1 is true
if(2>1)
return 2*factorialize(1){ //**********This staten=ment gets executed SINCE 2 > 1 is true
if(1>1)
return 1*factorialize(0);
else
return 1; //**********This staten=ment gets executed SINCE 1 is not greater than 1
};
@kt-aakash
kt-aakash / main.dart
Created August 9, 2020 17:41
Flutter Version : 1.20
import 'package:flutter/material.dart';
void main() => runApp(Quizzler());
class Quizzler extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.grey.shade900,