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> | |
void main() { | |
int a = 10; | |
int b = 1; | |
int temp; | |
printf("%d %d", a, b); | |
temp = a; | |
a = b; |
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
while true; do | |
random=$((1 + RANDOM % 8)) | |
for ((i=0;i<$random;i++)); do | |
echo -en "\t" | |
done | |
echo -e "\033[1;3${random}mbruh\033[0m"; | |
sleep 1; | |
done |
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
# class Graph: | |
# list of edges with cost | |
# heuristic of each edge | |
class Graph: | |
def __init__(self): | |
self.edges = { | |
'S': [('A', 6), ('B', 5), ('C', 10)], | |
'A': [('E', 4)], | |
'B': [('E', 6), ('D', 7)], |
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
95,85 | |
85,95 | |
80,70 | |
70,65 | |
60,70 |
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
color | type | origin | stolen | |
---|---|---|---|---|
red | sports | domestic | yes | |
red | sports | domestic | no | |
red | sports | domestic | yes | |
yellow | sports | domestic | no | |
yellow | sports | imported | yes | |
yellow | suv | imported | no | |
yellow | suv | imported | yes | |
yellow | suv | domestic | no | |
red | suv | imported | no |
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
class Point: | |
x = None | |
w = None | |
def __init__(self, x): | |
self.x = x | |
self.w = -1 | |
points = [ | |
# Age, Income, Student, Credits, Bhai or not |
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 operator | |
class Point: | |
x = None | |
y = None | |
d = None | |
q = None | |
def __init__(self, x, y, d, q): | |
self.x = x |
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
class Cluster: | |
x = None | |
y = None | |
def __init__(x,y): | |
self.x = x | |
self.y = y | |
count = int(input("Enter the number of points >")) |
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
numbers = list(map(int, input("Enter the numbers > ").split(" "))) | |
numbers.sort() | |
cluster_centers = {} | |
for x in numbers: | |
cluster_centers[x] = -1 | |
print(numbers) |
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.util.*; | |
import java.io.*; | |
class Tokenizer { | |
private static List<String> keywords = new ArrayList<>(); | |
private static List<String> identifiers = new ArrayList<>(); | |
private static List<String> special = new ArrayList<>(); | |
private static List<String> preproc = new ArrayList<>(); | |
private static List<String> brackets = new ArrayList<>(); |
NewerOlder