This file contains hidden or 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
/* | |
~ Rahul Goswami | |
*/ | |
#include<bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cout << "Enter the number of tasks: "; |
This file contains hidden or 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<bits/stdc++.h> | |
using namespace std; | |
int lcm(int a, int b) { | |
return (a * b) / __gcd(a, b); | |
} | |
int main() { | |
cout << "Enter the number of total processes: "; | |
int n; | |
cin >> n; |
This file contains hidden or 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
r = 50, cx = 150, cy = 200; | |
p = 1 - r; | |
x = 0; y = r; | |
while (x <= y) { | |
putpixel(x + cx, y + cy, RED); | |
putpixel(y + cx, x + cy, RED); | |
putpixel(-x + cx, y + cy, RED); | |
putpixel(-y + cx, x + cy, RED); | |
/*putpixel(x + cx, -y + cy, RED); | |
putpixel(y + cx, -x + cy, RED); |
This file contains hidden or 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<bits/stdc++.h> | |
using namespace std; | |
int lcm(int a, int b) { | |
return (a * b) / __gcd(a, b); | |
} | |
int main() { | |
cout << "Enter the number of total processes: "; | |
int n; | |
cin >> n; |
This file contains hidden or 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<bits/stdc++.h> | |
using namespace std; | |
int lcm(int a, int b) { | |
return a * b / __gcd(a, b); | |
} | |
int main() { | |
cout << "Enter the number of tasks: "; | |
int n; |
This file contains hidden or 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 numpy as np | |
import matplotlib.pyplot as plt | |
import cv2 | |
from scipy import stats | |
np.random.seed(123) # for reproducibility | |
from skimage.restoration import denoise_bilateral | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, Activation, Flatten | |
from keras.layers import MaxPooling2D, Conv2D |
This file contains hidden or 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 - Rahul Goswami | |
* 15 Apr, 2018 | |
*/ | |
#include<bits/stdc++.h> | |
using namespace std; | |
#define N 10 | |
vector<int> adj[N]; | |
int max_distance, farthest_node; |
This file contains hidden or 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/python3 | |
""" | |
@author - Rahul Goswami | |
run as: | |
python3 bankers-alogorithm.py | |
Output: | |
Enter the number of processes (n): 5 |