Skip to content

Instantly share code, notes, and snippets.

View devil-cyber's full-sized avatar
💭
Always Learning

Manikant Kumar devil-cyber

💭
Always Learning
View GitHub Profile
@devil-cyber
devil-cyber / connected_copmnonet.cpp
Created April 5, 2022 05:29
Connected Component in Directed Graph
#include<iostream>
#include<list>
#include<vector>
using namespace std;
class Graph{
int V;
list<int> *l;
public:
Graph(int v){
@devil-cyber
devil-cyber / component.cpp
Created April 5, 2022 05:18
Connected Component
#include<iostream>
#include<vector>
using namespace std;
class Graph{
int V;
vector<int> *l;
public:
Graph(int v){
V = v;
#include<iostream>
#include<vector>
using namespace std;
class Graph{
int V;
vector<int> *l;
public:
Graph(int v){
V = v;
@devil-cyber
devil-cyber / shortest.cpp
Created April 4, 2022 05:18
Shortest Pth Uisng Bfs in Graph
#include<iostream>
#include<vector>
#include<queue>
using namespace std;
class Graph{
int V;
vector<int> *l;
public:
Graph(int v){
@devil-cyber
devil-cyber / cloudSettings
Last active January 10, 2022 20:33 — forked from codersgyan/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-01-10T19:56:28.451Z","extensionVersion":"v3.4.3"}
@devil-cyber
devil-cyber / tree.c
Created October 5, 2021 17:31
Binary Tree implementation in C
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
#define MIN(X,Y) ((X) > (Y) ? (Y) : (X))
struct Node{
int data;
struct Node *left;
struct Node *right;
@devil-cyber
devil-cyber / linkedlist.c
Created October 5, 2021 17:29
LinkedList implementation in C
#include<stdio.h>
#include<stdlib.h>
struct Node{
int data;
struct Node *next;
};
struct Node *NewNode(int data){
struct Node *node = (struct Node*)malloc(sizeof(struct Node));
@devil-cyber
devil-cyber / stack.c
Last active October 5, 2021 17:30
Stack implementation in C
#include<stdio.h>
#include<stdlib.h>
#define INT_MIN -99999999
struct stack{
int top;
unsigned int capacity;
int * arr;
};
@devil-cyber
devil-cyber / queue.c
Created October 5, 2021 17:28
Queue implementation in C
#include<stdio.h>
#include<stdlib.h>
#define INT_MIN -999999
struct Queue{
unsigned int capacity;
int *arr;
int front;
int top;
int size;
@devil-cyber
devil-cyber / alexnet.ipynb
Last active June 21, 2021 07:49
AlexNet implementation using MXNet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.