prakharvk

Prakharvk's Pastebin

576 1,889 0 5 years ago
Name / Title Added Expires Hits Comments Syntax  
next smaller palindrome Aug 10th, 2019 Never 551 0 C++ -
KMP string matching Aug 6th, 2019 Never 95 0 C++ -
find bridges in a graph Jul 1st, 2019 Never 106 0 C++ -
disputed Jun 27th, 2019 Never 48 0 C++ -
maximum sum sbsequence such that no two are adjacent(O(n) solution, optimal) Jun 22nd, 2019 Never 110 0 C++ -
maximum subsequence sum such that no two elemnts are adjacent(n^2 solution, non optimal) Jun 22nd, 2019 Never 87 0 C++ -
Longest increasing subsequence Jun 21st, 2019 Never 80 0 C++ -
maximum length snake sequence Jun 21st, 2019 Never 108 0 C++ -
Golomb sequence Jun 21st, 2019 Never 118 0 C++ -
longest subset such that max of every pair in it is divisible by min Jun 21st, 2019 Never 92 0 C++ -
print all paths to node without recursion Jun 18th, 2019 Never 100 0 C++ -
contruct full binary tree from preorder and postorder traversals Jun 16th, 2019 Never 95 0 C++ -
Diagonal traversal of binary tree Jun 15th, 2019 Never 92 0 C++ -
merge k-sorted arrays using min-Heap Jun 13th, 2019 Never 72 0 C++ -
replace a node with sum of its children Jun 8th, 2019 Never 86 0 C++ -
Pre Order binary tree build and print Jun 7th, 2019 Never 49 0 C++ -