Skip to content

Instantly share code, notes, and snippets.

View Esarve's full-sized avatar
💭
IDK🙄

Sourav Das Esarve

💭
IDK🙄
View GitHub Profile
@Esarve
Esarve / main.c
Created October 7, 2016 15:01
Caesar Cipher
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void cipher(char* p);
int main()
{
char input[100];
printf("Input Your string: ");
fgets(input,100,stdin);
@Esarve
Esarve / main.c
Created October 20, 2016 05:16
Link List
#include <stdio.h>
#include <stdlib.h>
struct node
{
int data;
struct node* next;
struct node* prev;
};
#include <stdio.h>
#include <stdlib.h>
typedef struct info
{
char* name;
int bng;
int eng;
int mth;
float avg;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct Stack
{
char* elements;
int size;
int capasity;
}stack;
#include <stdio.h>
#include <stdlib.h>
int display(int store[], int i);
int main()
{
int x,i,n,k,temp,flag;
i=1;
int store[20];
for (n=0;n<20;n++){
#include <stdio.h>
#include <stdlib.h>
void print(int array[], int i);
int main(){
int i=0;
int array[]={1,2,3,4,5,6,7,8,9};
print(array, i);
}
#include <stdio.h>
#include <stdlib.h>
int partition(int arr[], int start, int end){
int pivot = arr[end];
int i=end;
int j;
int tmp;
for (j=end;j<end-1;j++){
if(arr[j]<=pivot){
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main {
// Arraylists for Input grammar, First and Follow
private static Scanner s = new Scanner(System.in);
private static ArrayList<String> lhs = new ArrayList();
import java.util.Scanner;
public class Main {
private static Scanner s = new Scanner(System.in);
public static void main(String[] args) {
System.out.print("Enter Your String: ");
String input = s.nextLine();
if (input.matches("/\\*.+\\*/")) System.out.println("This is a block comment");
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class Test {
private static ArrayList<String> operators = new ArrayList<>();
private static ArrayList<String> keywords = new ArrayList<>();
private static ArrayList<String> symbols = new ArrayList<>();
private static ArrayList<String> variables = new ArrayList<>();