Skip to content

Instantly share code, notes, and snippets.

View SohanChy's full-sized avatar

Sohan Chowdhury SohanChy

View GitHub Profile
@SohanChy
SohanChy / Java-Android-Resources.txt
Created January 29, 2016 14:12
Links I've collected for learning java and android
http://www.xaviertobin.com/
https://plus.google.com/+KevinDarty/posts/Qex6Ae6zhZW
https://www.udemy.com/android-marshmallow-java-app-development-course/
https://www.udacity.com/courses/cs046
https://developer.android.com/training/index.html
@SohanChy
SohanChy / cpp-prefix-postfix
Last active February 17, 2016 13:24
Evaluation of prefix and postfix notations in CPP
#include <iostream>
#include <stack>
#include <cmath>
using namespace std;
bool isOperator(char x)
{
if(x == '+' || x == '-' || x == '*' || x == '/' || x == '^')
{
@SohanChy
SohanChy / lab_5_solve.sql
Created February 16, 2016 15:11 — forked from abrarShariar/lab_5_solve.sql
Solving lab_5 sql problems
1)>> select customer_name,customer_city from customer where customer_name in (select customer_name from
borrower);
2)>> select customer_name,customer_city from customer where customer_name in (select customer_name from
borrower where loan_number in (select loan_number from loan where branch_name='Perryridge'));
@SohanChy
SohanChy / STACK_infix-to-postfix.cpp
Last active March 3, 2016 17:17
infix to postfix converter
#include <iostream>
#include <stack>
#include <cmath>
using namespace std;
bool isOperator(char x)
{
if(x == '+' || x == '-' || x == '*' || x == '/' || x == '^')
{
@SohanChy
SohanChy / string.asm
Created February 17, 2016 13:24
String printing in assembly 8086
.model small
.stack 100h
.data
a db ?
b db ?
txt1 dw 'Enter 1st input: $'
txt2 dw 'Enter 2nd input: $'
txt3 dw 'a: $'
txt4 dw 'b: $'
txt5 dw 'sum: $'
@SohanChy
SohanChy / towers_of_hanoi.cpp
Last active March 2, 2016 06:16
A recursive solution to the towers of hanoi problem in C++ using built in stack
#include <bits/stdc++.h>
using namespace std;
void pegPrint(stack<int> peg,char x)
{
cout<<"********** "<<x<<" ************"<<endl;
for(; peg.empty() != true; peg.pop())
{
cout<<"- ";
@SohanChy
SohanChy / infix_to_postfix_to_prefix_then_evaluate.cpp
Last active March 3, 2016 17:15
infix_to_postfix_to_prefix_then_evaluate.cpp
#include <iostream>
#include <stack>
#include <cmath>
#include <algorithm>
using namespace std;
bool isOperator(char x)
{
if(x == '+' || x == '-' || x == '*' || x == '/' || x == '^')
@SohanChy
SohanChy / twin_stacks.cpp
Created March 3, 2016 18:17
Two stacks in same array
#include <iostream>
using namespace std;
const int N = 10;
class twinStack
{
int arr[10];
@SohanChy
SohanChy / simple_linked_list.cpp
Last active March 7, 2016 07:34
Simple link list implementation using struct and functions
#include <iostream>
using namespace std;
struct ListNode
{
int data;
ListNode *next;
};
#include <iostream>
using namespace std;
struct ListNode
{
int data;
ListNode *next;
};