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
/*program to draw a graph of rainfall acording to % for 5 years*/ | |
#include<stdio.h> | |
#include<conio.h> | |
#include<graphics.h> | |
#include<math.h> | |
void drawline(int,int,int,int,int); | |
void main() | |
{ | |
int gd=0,gm,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
/* program for stack implementation in c*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include<conio.h> | |
//global variables | |
int stackk[20],top; | |
//function definition | |
void push(int); |
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
__author__ = 'MOHIT' | |
# program to implement stack in python using python lists | |
# create a simple empty list | |
stax = [] | |
# top variable | |
top = -1 | |
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
# program to find the middle node of the Linked List in single traversal | |
class LinkedList: | |
def __init__(self): | |
self.head = None | |
# returns true is LinkedList is Empty | |
def isEmpty(self): | |
if self.head is None: | |
return True |