jain12

Jain12's Pastebin

540 8,713 1 year ago
Name / Title Added Expires Hits Syntax  
Shell Sort Sep 27th, 2021 Never 1,083 Java -
Dice throw problem by dp Jun 8th, 2020 Never 181 C++ -
Dice throw problem by recursion Jun 8th, 2020 Never 48 C++ -
Maximum product cutting by dp Jun 8th, 2020 Never 62 C++ -
Maximum product by recursion Jun 8th, 2020 Never 61 C++ -
Coin change problem by DP Jun 7th, 2020 Never 53 C++ -
Coin change problem by recursion Jun 7th, 2020 Never 53 C++ -
Cutting a rod by Recursion Jun 7th, 2020 Never 55 C++ -
Cutting a rod by DP Jun 7th, 2020 Never 55 C++ -
partition problem solution 3 Jun 7th, 2020 Never 49 C++ -
Partition problem solu. 2 Jun 7th, 2020 Never 49 C++ -
partition problem solution 1 Jun 7th, 2020 Never 44 C++ -
Shortest Common SuperSequence Jun 6th, 2020 Never 63 C++ -
boolean parenthesization Jun 6th, 2020 Never 55 C++ -
matrix chain multiplication Jun 6th, 2020 Never 53 C++ -
Exception handling doubt 2 Jun 5th, 2020 Never 61 Java -
Exception handling doubt 1 Jun 5th, 2020 Never 64 Java -
kth smallest element in a BST Jun 5th, 2020 Never 58 C++ -
optimal strategy for a game by DP Jun 1st, 2020 Never 48 C++ -
optimal strategy for a game by recursion Jun 1st, 2020 Never 53 C++ -
Maximum subarray Jun 1st, 2020 Never 48 C++ -
0-1 knapsack problem by DP Jun 1st, 2020 Never 45 C++ -
0-1 knapsack problem by recursion Jun 1st, 2020 Never 58 C++ -
Subset some problem by dp Jun 1st, 2020 Never 51 C++ -
Subset sum problem by recursion Jun 1st, 2020 Never 50 C++ -
find longest path in a matrix May 28th, 2020 Never 67 C++ -
Count number of ways to cover a distance by dynami... May 27th, 2020 Never 50 C++ -
Count number of ways to cover a distance May 27th, 2020 Never 55 C++ -
partition set into subsets such that the differenc... May 27th, 2020 Never 49 C++ -
Edit distance by DP May 9th, 2020 Never 50 C++ -
Edit distance by recursion May 9th, 2020 Never 57 C++ -
longest common subsequence by dp May 4th, 2020 Never 64 C++ -
longest common subsequence by recursion May 4th, 2020 Never 74 C++ -
longest increasing subsequence by dynamic programm... May 1st, 2020 Never 61 C++ -
longest increasing subsequence by recursion May 1st, 2020 Never 73 C++ -
minimum cost path by Dynamic programming Apr 29th, 2020 Never 41 None -
minimum cost path by recursion Apr 29th, 2020 Never 70 C++ -
BFS in graph Apr 21st, 2020 Never 80 C++ -
DFS in graph Apr 21st, 2020 Never 77 C++ -
find least common ancestor in a binary tree(2) Mar 31st, 2020 Never 48 C++ -
find least common ancestor in a binary tree Mar 31st, 2020 Never 54 C++ -
find shortest path between two nodes in BST Mar 31st, 2020 Never 45 C++ -
find least common ancestor in BST Mar 31st, 2020 Never 46 C++ -
convert a sorted doubly linked list into balanced... Mar 31st, 2020 Never 49 C++ -
convert a sorted singly linked list into balanced... Mar 31st, 2020 Never 51 C++ -
postorder traversal without recursion in a binary... Mar 30th, 2020 Never 50 C++ -
inorder traversal without recursion Mar 30th, 2020 Never 54 C++ -
preorder traversal without recursion Mar 30th, 2020 Never 46 C++ -
number of BST possible for n nodes Mar 30th, 2020 Never 53 C++ -
print elements between a given range Mar 30th, 2020 Never 54 C++ -
find floor and ceiling in BST Mar 30th, 2020 Never 53 C++ -
find kth smallest element in BST Mar 29th, 2020 Never 51 C++ -
Convert a sorted array into BST(2) Mar 29th, 2020 Never 47 C++ -
Convert a sorted array into BST Mar 29th, 2020 Never 47 C++ -
convert a BST into circular doubly linked list(2) Mar 29th, 2020 Never 60 C++ -
convert a BST into circular doubly linked list Mar 28th, 2020 Never 58 C++ -
check whether a tree is BST or not(3) Mar 28th, 2020 Never 53 C++ -
check whether a tree is BST or not(2) Mar 28th, 2020 Never 51 C++ -
check whether a tree is BST or not(1) Mar 28th, 2020 Never 52 C++ -
vertical sum in a binary tree(3) Mar 26th, 2020 Never 53 C++ -
print vertical sum in a binary tree Mar 26th, 2020 Never 52 C++ -
vertical sum in a binary tree(1) Mar 26th, 2020 Never 49 C++ -
zig zag traversal in a binary tree Mar 26th, 2020 Never 51 C++ -
print ancestors of a given node in a binary tree (... Mar 22nd, 2020 Never 50 C++ -
print ancestors of a given node in a binary tree (... Mar 22nd, 2020 Never 44 C++ -
check whether two trees are mirror of each other o... Mar 18th, 2020 Never 48 C++ -
convert a tree into its mirror Mar 18th, 2020 Never 47 C++ -
check existence of a path having given sum Mar 18th, 2020 Never 57 C++ -
insertion in a binary tree Mar 18th, 2020 Never 51 C++ -
Construct BST from preorder traversal in linear ti... Mar 13th, 2020 Never 53 C++ -
How to determine if a binary tree is height-balanc... Mar 13th, 2020 Never 49 C++ -
How to determine if a binary tree is height-balanc... Mar 13th, 2020 Never 57 C++ -
second largest element in BST Mar 12th, 2020 Never 50 C++ -
Check if each internal node of a BST has exactly o... Mar 12th, 2020 Never 50 C++ -
delete a node in BST Mar 12th, 2020 Never 59 C++ -
Check if each internal node of a BST has exactly o... Mar 11th, 2020 Never 48 None -
minimum value in BST Mar 11th, 2020 Never 52 C++ -
Construct BST from preorder traversal Mar 11th, 2020 Never 51 C++ -
insertion and searching in a BST Mar 9th, 2020 Never 49 C++ -
foodie Mar 8th, 2020 Never 52 C++ -
war Mar 8th, 2020 Never 55 C++ -
diameter of a binary tree in linear time complexit... Mar 8th, 2020 Never 51 C++ -
Deleting a node in a binary tree Mar 6th, 2020 Never 51 C++ -
Print Paths in a binary tree Mar 6th, 2020 Never 53 C++ -
Diameter of a binary tree Mar 6th, 2020 Never 51 C++ -
Delete binary tree Mar 6th, 2020 Never 53 C++ -
print left view of a binary tree Feb 29th, 2020 Never 53 C++ -
deepest node in binary tree Feb 29th, 2020 Never 58 C++ -
level having maximum sum in a binary tree Feb 29th, 2020 Never 60 C++ -
height of a tree in linear time complexity Feb 29th, 2020 Never 58 None -
delete a binary tree in linear time complexity Feb 28th, 2020 Never 57 C++ -
reverse level order traversing using stack,queue i... Feb 28th, 2020 Never 54 C++ -
level that has maximum sum in a binary tree Feb 24th, 2020 Never 63 C++ -
check whether structures are identical or not Feb 24th, 2020 Never 63 C++ -
check similarity of two structures Feb 24th, 2020 Never 64 C++ -
no. of half nodes with recursion Feb 24th, 2020 Never 56 C++ -
no. of half nodes without using recursion. Feb 24th, 2020 Never 52 C++ -
no. of full nodes in a binary tree with recursion Feb 24th, 2020 Never 54 C++ -
no. of full nodes in a binary tree without recursi... Feb 24th, 2020 Never 56 C++ -
no.of leaves in a binary tree with recursion Feb 24th, 2020 Never 55 C++ -