Skip to content

Instantly share code, notes, and snippets.

View B45i's full-sized avatar
:octocat:

Amal Shajan B45i

:octocat:
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
struct node{
int i;
struct node *link;
}*first,*n,*ptr,*tptr;
void infront(void){
ptr = (struct node*)malloc(sizeof(struct node));
#include <stdio.h>
#include <stdlib.h>
struct node{
int i;
struct node *rlink,*llink;
}*first=NULL,*n,*ptr,*tptr,*nptr;
void infront(void){
if(first==NULL){
#include <stdio.h>
#include <stdlib.h>
struct node{
int i;
struct node *link;
}*top=NULL,*front=NULL,*rear=NULL,*ptr,*n,*tptr;
void stack();
void queue();
#include <stdio.h>
#include <stdlib.h>
void menu(void);
struct node{
int i;
struct node *lc;
struct node *rc;
}*root;
void buildtree(struct node *ptr){
import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import java.awt.event.KeyEvent;
import javax.swing.JOptionPane;
import processing.serial.*;
import java.util.HashMap;
var campo = document.getElementsByClassName("input")[1];
contador = 0;
function dispatch(target, eventType, char) {
var evt = document.createEvent("TextEvent");
evt.initTextEvent (eventType, true, true, window, char, 0, "en-US");
target.focus();
target.dispatchEvent(evt);
}
function spam(){
if (contador<100){ //
int delayTime = 1;
int charBreak = 2.1;
int LED1 = 4;
int LED2 = 3;
int LED3 = 2;
int LED4 = 1;
int LED5 = 0;
void setup()
/*
HackerRank World CodeSprint 9 Grading Students
*/
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
const char* ssid = "your_wifi_name";
const char* password = "your_password";
const char* host = "amalshajan.me"; // Your domain
String path = "/iot/light.json";
const int pin = 16;
@B45i
B45i / 7 segment.c
Last active February 18, 2017 09:13
#include<stdio.h>
#include<string.h>
int main(){
int a0[3][3] = {
{0,2,0},
{1,0,1},
{1,2,1}
};