Skip to content

Instantly share code, notes, and snippets.

View AmanSinghBhogal's full-sized avatar
🎯
Focusing

Aman Singh Bhogal AmanSinghBhogal

🎯
Focusing
View GitHub Profile
@AmanSinghBhogal
AmanSinghBhogal / BinarySearchTree.cpp
Created November 2, 2022 10:34
Binary Search Tree in C++ Programming
/*
Binary Search Tree : A binary tree in which all the nodes are arranged according to their values is known as Binary Search Tree.
In this program we will see the code to create, insert an node, delete a node in a Binary Search Tree.
*/
#include<iostream>
using namespace std;
// Data Structure for Binary tree's nodes.
struct BinarySearchTree

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@AmanSinghBhogal
AmanSinghBhogal / .c
Last active January 11, 2021 04:10
Age in years and Day
//Program to find the age in days.
#include<stdio.h>
#include<process.h>
int main()
{
system("cls");
int m[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int d1,d2,m1,m2,y1,y2,c1,c2=0,c3=0,c4=0,c5=0,k=0;
printf("Enter Current Date in dd-mm-yy fromat:");
scanf("%d/%d/%d",&d1,&m1,&y1);
@AmanSinghBhogal
AmanSinghBhogal / .cpp
Last active May 10, 2021 10:55
Program for Determinant, characteristic equation,etc.
//Program to solve questions based on eigen value and eigen vector.
//This is going to be a menu driven program. Following operations would be made possible by this code:
//1. Find Determinant of an inserted matrix.
//2. See if Matrix is consistant or not.
//3. Finding sqquare of a Matrics .
//4. Finding cube of a Matrix.
//5. Finding product of two Matrix.
//6. Finding Characteristic equation of a matrix.
char const p_2= 253; //power to 2 superscript.
@AmanSinghBhogal
AmanSinghBhogal / .cpp
Last active December 3, 2020 12:02
Snake and Ladder
//Snake and Ladder Game
//Project 1: Built Year 2019
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<process.h>
char *square={"01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950"};
char *nul={" "};
char *ernul={" "};
char *erase={"01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950"};
#include<iostream.h>
#include<conio.h>
#include<ctype.h>
void main()
{
clrscr();
cout<<"Converting Sentence to Capital Letters."<<endl;
char str[100];
cout<<"Enter the Sentence:";
cin.getline(str,100);