Skip to content

Instantly share code, notes, and snippets.

View cmrmahesh's full-sized avatar

Maheswara Reddy Chennuru cmrmahesh

View GitHub Profile
#include<stdio.h>
int check[100];
int main()
{
int p,r,alloc[100][100],aval[100],want[100],max[100][100],i,j,k;
printf("enter the no of process and the no of resources");
scanf("%d %d",&p,&r);
@cmrmahesh
cmrmahesh / cat.php
Last active February 9, 2016 06:03
CD Project Basics PHP
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
var cid;
function get_stores(var_CategoryID)
@cmrmahesh
cmrmahesh / GoogleScraper.php
Created May 21, 2015 10:29
Google Scraper using PHP.
<!DOCTYPE HTML>
<head>
</head>
<body>
<form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>" >
Enter the search word:<input type="text" name="qword"><br><br>
<input type="submit" value="Go"><br>
</form>
@cmrmahesh
cmrmahesh / life_the_universe_and_everything.cpp
Created March 23, 2015 15:08
Life, the Universe, and Everything - SPOJ
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
while( 1 )
{
cin >> n ;
if ( n == 42 )