Skip to content

Instantly share code, notes, and snippets.

View ashwani-pandey's full-sized avatar

Ashwani Pandey ashwani-pandey

View GitHub Profile
@ashwani-pandey
ashwani-pandey / RecommendedStream.js
Created June 4, 2020 07:44
AI Playground Chatbot code for recommending subject streams
const WELCOME = 0;
const FIRST = 1;
const FINISH = 2;
let currentState = WELCOME;
let details = {};
if(currentState == WELCOME){
Bot.send("Hey, there! What's your name?");
}
@ashwani-pandey
ashwani-pandey / complex_and_buggy.py
Created October 12, 2016 17:57
Importance of Mathematical intuition!
def main():
n,m=map(int,raw_input().rstrip().split(' '))
a=map(int,raw_input().rstrip().split(' ')) # a[i] -> song number i+1
# make the array b where b[j] -> number of songs grp j is performing
b=[]
for i in xrange(m+1):
@ashwani-pandey
ashwani-pandey / uva11340-rightway.cpp
Last active January 3, 2016 12:39
wrong & right approach
cout.precision(2);
cout<<fixed;
cout<<ans/100<<"$"<<endl;;