prakharvk

Prakharvk's Pastebin

759 2,370 0 7 years ago
Name / Title Added Expires Hits Comments Syntax  
next smaller palindrome Aug 10th, 2019 Never 741 0 C++ -
KMP string matching Aug 6th, 2019 Never 115 0 C++ -
find bridges in a graph Jul 1st, 2019 Never 128 0 C++ -
disputed Jun 27th, 2019 Never 62 0 C++ -
maximum sum sbsequence such that no two are adjacent(O(n) solution, optimal) Jun 22nd, 2019 Never 125 0 C++ -
maximum subsequence sum such that no two elemnts are adjacent(n^2 solution, non optimal) Jun 22nd, 2019 Never 104 0 C++ -
Longest increasing subsequence Jun 21st, 2019 Never 101 0 C++ -
maximum length snake sequence Jun 21st, 2019 Never 128 0 C++ -
Golomb sequence Jun 21st, 2019 Never 140 0 C++ -
longest subset such that max of every pair in it is divisible by min Jun 21st, 2019 Never 111 0 C++ -
print all paths to node without recursion Jun 18th, 2019 Never 127 0 C++ -
contruct full binary tree from preorder and postorder traversals Jun 16th, 2019 Never 113 0 C++ -
Diagonal traversal of binary tree Jun 15th, 2019 Never 116 0 C++ -
merge k-sorted arrays using min-Heap Jun 13th, 2019 Never 88 0 C++ -
replace a node with sum of its children Jun 8th, 2019 Never 106 0 C++ -
Pre Order binary tree build and print Jun 7th, 2019 Never 66 0 C++ -