摘要: 点击查看代码 //Inplementation of Binary Search Tree #include<iostream> using namespace std; struct bstnode { int data; bstnode* left; bstnode* right; }; /*b 阅读全文
posted @ 2024-01-22 21:17 bituion 阅读(18) 评论(0) 推荐(0)
摘要: 点击查看代码 //Queue-Linked List Implementation #include<iostream> using namespace std; struct node { int data; node* next; }; node* front = NULL; node* rea 阅读全文
posted @ 2024-01-22 11:20 bituion 阅读(11) 评论(0) 推荐(0)
摘要: 点击查看代码 //Infix to postfix conversion using stack #include<iostream> #include<stack>//stack from standard template library(STL) #include<string> using 阅读全文
posted @ 2024-01-21 22:25 bituion 阅读(44) 评论(0) 推荐(0)
摘要: 点击查看代码 //Evaluation Of postfix Expression using stack #include<iostream> #include<stack>//stack from standard template library(STL) #include<string> u 阅读全文
posted @ 2024-01-21 15:50 bituion 阅读(28) 评论(0) 推荐(0)
摘要: 点击查看代码 //Check for balanced parentheses using stack #include<iostream> #include<stack>//stack from standard template library(STL) #include<string> usi 阅读全文
posted @ 2024-01-20 16:52 bituion 阅读(18) 评论(0) 推荐(0)
摘要: 点击查看代码 //Linked list reversal using stack #include<iostream> #include<stack>//stack from standard template library(STL) using namespace std; struct no 阅读全文
posted @ 2024-01-19 19:54 bituion 阅读(14) 评论(0) 推荐(0)
摘要: 点击查看代码 //string reversal using stack #include<iostream> #include<stack>//stack from standard template library(STL) using namespace std; void reverse(c 阅读全文
posted @ 2024-01-19 19:18 bituion 阅读(16) 评论(0) 推荐(0)
摘要: 点击查看代码 //Prime factorization of a number #include<iostream> #include<cmath> using namespace std; void primefactorization(int n) { for (int i = 2; i <= 阅读全文
posted @ 2024-01-19 17:14 bituion 阅读(42) 评论(0) 推荐(0)
摘要: 点击查看代码 //Find all factors of a number #include<iostream> #include<cmath> using namespace std; void Factors(int n) { int* factors = new int[n+1](); for 阅读全文
posted @ 2024-01-19 16:09 bituion 阅读(16) 评论(0) 推荐(0)
摘要: 点击查看代码 //Find all prime number upto n-Sieve of Eratosthenes #include<iostream> #include<cmath> using namespace std; void findprimes(int n) { int* prim 阅读全文
posted @ 2024-01-19 15:23 bituion 阅读(17) 评论(0) 推荐(0)