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> | |
struct node{ | |
int i; | |
struct node *link; | |
}*first,*n,*ptr,*tptr; | |
void infront(void){ | |
ptr = (struct node*)malloc(sizeof(struct node)); |
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> | |
struct node{ | |
int i; | |
struct node *rlink,*llink; | |
}*first=NULL,*n,*ptr,*tptr,*nptr; | |
void infront(void){ | |
if(first==NULL){ |
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> | |
struct node{ | |
int i; | |
struct node *link; | |
}*top=NULL,*front=NULL,*rear=NULL,*ptr,*n,*tptr; | |
void stack(); | |
void queue(); |
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> | |
void menu(void); | |
struct node{ | |
int i; | |
struct node *lc; | |
struct node *rc; | |
}*root; | |
void buildtree(struct node *ptr){ |
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 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; |
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
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){ // |
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
int delayTime = 1; | |
int charBreak = 2.1; | |
int LED1 = 4; | |
int LED2 = 3; | |
int LED3 = 2; | |
int LED4 = 1; | |
int LED5 = 0; | |
void setup() |
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
/* | |
HackerRank World CodeSprint 9 Grading Students | |
*/ | |
#include <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> |
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 <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; |
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<string.h> | |
int main(){ | |
int a0[3][3] = { | |
{0,2,0}, | |
{1,0,1}, | |
{1,2,1} | |
}; |
OlderNewer