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
//Palindrome | |
#include "stdio.h" | |
#include "stdlib.h" | |
struct Node{ | |
char info; | |
struct Node *next; | |
}; |
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 stack | |
{ | |
int info; | |
struct stack *next; | |
}; | |
typedef struct stack *s; |
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 info; | |
struct Node *next; | |
}; | |
typedef struct Node *nodeptr; |
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 java.io.*; | |
public class Real | |
{ | |
public static void main(String[] args) | |
{ | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
String in; | |
try{ | |
System.out.println("Enter string"); | |
in = br.readLine(); |
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 java.io.*; | |
public class Identifier | |
{ | |
public static void main(String [] args)throws IOException | |
{ | |
String id; | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
System.out.println("Enter a string: "); |
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 io.h | |
cr equ 0dh | |
lf equ 0ah | |
data segment | |
la db cr,lf,'Enter a',0 | |
lb db cr,lf,'Enter b',0 | |
l1 db cr,lf,'Enter x',0 | |
ly db cr,lf,'Enter y',0 |
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 io.h | |
data segment | |
lf db 0dh,0 | |
cr db 0ah,0 | |
n_prompt db "Enter n:",0 | |
num_prompt db "Enter number",0 | |
res_sum db "Sum = ",0 | |
res_avg db "Average = ",0 | |
n dw 40 DUP(?) |
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
#!/usr/bin/python2 | |
print "Enter a string" | |
str = raw_input() | |
state = 0 | |
dfa = [{'a':1,'b':0,'c':0},{'b':2,'a':0,'c':0},{'a':3,'b':1,'c':0},{'c':4,'a':2,'b':1},{'a':4,'b':4,'c':4}] | |
for i in str: | |
print i,': ',state,' -> ', | |
state = dfa[state][i] |
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 io.h | |
data SEGMENT | |
lf db 0dh,0 | |
cr db 0ah,0 | |
n_prompt db 'Enter size of array',0 | |
el_prompt db 'Enter elements',0 | |
odd_prompt db 'Odd = ',0 | |
even_prompt db 'Even = ',0 | |
n dw 40 dup(?) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
Enter your script name in the text box and hit submit. Have a callback in the url and the form data. The callback function should execute. | |
--> | |
</head> | |
<body> | |
<form> |
OlderNewer