Iam_Sandeep

Iam_Sandeep's Pastebin

12,591 226,157 0 7 years ago
Name / Title Added Expires Hits Comments Syntax  
Median in a row-wise sorted Matrix Jun 14th, 2022 Never 1,473 0 Python -
Divide Two Integers with out using multiplication Jun 14th, 2022 Never 1,099 0 Python -
Given an integer array nums, in which exactly two elements appear only once and all the other elemen Jun 13th, 2022 Never 282 0 Python -
Range bitwise and Jun 13th, 2022 Never 734 0 Python -
Reverse bits of a given 32 bits unsigned integer. reverse bits Jun 13th, 2022 Never 305 0 Python -
Find the largest power of 2 (most significant bit in binary form), which is less than or equal to th Jun 13th, 2022 Never 620 0 Python -
Count set bits count no of 1 bits bit mapping Jun 13th, 2022 Never 609 0 Python -
Kth Largest element in array Jun 13th, 2022 Never 636 0 Python -
M coloring graph backtracking May 14th, 2022 Never 1,129 0 Python -
Permutation of a string backtracking May 13th, 2022 Never 897 0 Python -
Untitled May 11th, 2022 Never 1,040 0 Python -
Word Break Problem May 7th, 2022 Never 851 0 Python -
Longest Alternatin Subsequence DP MEMO STATE ITERATIVE May 7th, 2022 Never 1,064 0 Python -
Coin change, Reach a given score DP May 6th, 2022 Never 884 0 Python -
Pairs with specific difference May 5th, 2022 Never 241 0 Python -
Minimum number of jumps DP VVIMP HARD May 5th, 2022 Never 745 0 Python -
Count all subsequences whose product is less than K May 2nd, 2022 Never 1,260 0 Python -
Maximum sum increasing subsequence May 2nd, 2022 Never 209 0 Python -
Longest Increasing Subsequence O(nlog n) O(n**2) May 2nd, 2022 Never 267 0 Python -
Optimal Strategy For a Game DP Apr 28th, 2022 Never 1,179 0 Python -
Palindrome Partitioning DP Apr 28th, 2022 Never 1,988 0 Python -
Optimal Binary Search Tree DP cost Apr 27th, 2022 Never 1,467 0 Python -
largest rectangle sum in matrix largest submatrux with given sum Apr 26th, 2022 Never 1,027 0 Python -
Largest Submatrix with Equal Number of 0's and 1's Apr 25th, 2022 Never 1,134 0 Python -
No of Ways of Boolean Paranthesis DP Apr 23rd, 2022 Never 1,470 0 Python -
Paint Fences Apr 22nd, 2022 Never 1,319 0 Python -
Check whether given preorder is BST or not Apr 21st, 2022 Never 975 0 Python -
1008. Construct Binary Search Tree from Preorder Traversal Apr 20th, 2022 Never 1,109 0 Python -
Inorder successor predecessor in BST Apr 20th, 2022 Never 821 0 Python -
Convert Sorted array to BST Apr 18th, 2022 Never 1,060 0 Python -
Count pairs from two BSTs whose sum is equal to a given value x Apr 17th, 2022 Never 1,033 0 Python -
Morris inorder preorder O(n) O(1) space traversals threaded binary tree Apr 16th, 2022 Never 843 0 Python -
Delete a node in BST Apr 12th, 2022 Never 704 0 Python -
Quick sort on linked list Apr 10th, 2022 Never 523 0 Python -
Reverse a doubly linked list Apr 4th, 2022 Never 282 0 Python -
QuickSort Apr 3rd, 2022 Never 1,744 0 Python -
Merge Sort for linked list Apr 2nd, 2022 Never 1,261 0 Python -
Remove loop in linked list Apr 2nd, 2022 Never 1,384 0 Python -
Detect lloop in linked list Apr 2nd, 2022 Never 204 0 Python -
Reverse a Linked List in groups of given size. Mar 24th, 2022 Never 1,020 0 Python -
Boundary traversal of Binary tree Mar 23rd, 2022 Never 1,517 0 Python -
Kth ancestor of a node in binary tree Mar 23rd, 2022 Never 170 0 Python -
Min distance between two given nodes of a Binary Tree Mar 23rd, 2022 Never 1,263 0 Python -
Least common ancestor LCA Mar 22nd, 2022 Never 215 0 Python -
K Sum Paths Mar 14th, 2022 Never 728 0 Python -
Check whether given graph is valid tree bfs and dfs Mar 14th, 2022 Never 371 0 Python -
Construct Tree from Inorder & Preorder Mar 12th, 2022 Never 1,039 0 Python -
Minimum Swaps To Convert Binary Tree Into BST Mar 12th, 2022 Never 1,448 0 Python -
Binary tree from string Mar 12th, 2022 Never 1,597 0 Python -
Diagonal traversal of binary tree Mar 9th, 2022 Never 1,097 0 Python -
four sum 4sum Mar 8th, 2022 Never 1,096 0 Python -
Bottom view of binary tree Mar 8th, 2022 Never 1,065 0 Python -
Top view of binary tree Mar 8th, 2022 Never 914 0 Python -
Sum of minimum and maximum elements of all subarrays of size k. Feb 23rd, 2022 Never 766 0 Python -
check redundant braces in valid math expression Feb 15th, 2022 Never 872 0 Python -
ALllocate minimum number of pages Feb 11th, 2022 Never 849 0 Python -
kth smallest of two sorted arrays Feb 10th, 2022 Never 232 0 Python -
Minimum number of swaps to sort array using graph Jan 31st, 2022 Never 948 0 Python -
Longest Palindrome in String Dec 15th, 2021 Never 974 0 Python -
Untitled Dec 12th, 2021 Never 228 0 Python -
KMP pattern search algorithm Dec 9th, 2021 Never 876 0 Python -
Factorial of Large number using array Nov 26th, 2021 Never 219 0 Python -
no of pairs x^y greater than y^x Nov 13th, 2021 Never 1,298 0 Python -
subarray with given sum Nov 9th, 2021 Never 1,020 0 Python -
iterative pre order in order post order Oct 28th, 2021 Never 986 0 Python -
subset sum dynamic programming Sep 23rd, 2021 Never 1,237 0 Python -
Boyer-Moore voting algorithm more than one third size of element Sep 16th, 2021 Never 877 0 Python -
Moores voting algorithm . number which is repeating more than half the size of array Sep 16th, 2021 Never 243 0 Python -
count no of inversions Sep 16th, 2021 Never 1,043 0 Python -
Merge sort Sep 16th, 2021 Never 1,148 0 Python -
MULTIPLY STRINGS Sep 16th, 2021 Never 1,018 0 Python -
MAXIMUM PRODUCT SUBARRAY Sep 16th, 2021 Never 993 0 Python -
reverse a linked list Sep 7th, 2021 Never 1,267 0 Python -
counting sort for strings of letters Sep 2nd, 2021 Never 391 0 Python -
segment trees implementation Sep 1st, 2021 Never 1,237 0 Python -
kruskolls algorithm mst Jul 25th, 2021 Never 1,361 0 Python -
find no of strongly connected components using kosaraju algorithm Jul 13th, 2021 Never 1,362 0 Python -
check cycle directed graph : graph coloring method Jun 6th, 2021 Never 505 0 Python -
bipartite graph Jun 5th, 2021 Never 385 0 Python -
topological sort using kahns algorithm bfs + dfs Jun 1st, 2021 Never 994 0 Python -
check cycle directed graph : graph coloring method Jun 6th, 2021 Never 1,326 0 C++ -
bipartite graph Jun 5th, 2021 Never 920 0 C++ -
topological sort using kahns algorithm Jun 1st, 2021 Never 965 0 C++ -
Untitled Jun 29th, 2026 Never 44 0 MySQL -
Untitled Jun 29th, 2026 Never 42 0 MySQL -
Untitled May 16th, 2026 Never 43 0 Python -
Untitled May 15th, 2026 Never 43 0 MySQL -
Untitled Apr 28th, 2026 Never 67 0 Java -
Untitled Apr 20th, 2026 Never 51 0 Java -
Untitled Apr 15th, 2026 Never 59 0 Java -
Untitled Apr 15th, 2026 Never 56 0 Python -
Untitled Apr 15th, 2026 Never 44 0 Java -
Untitled Mar 27th, 2026 Never 54 0 C++ -
Untitled Mar 27th, 2026 Never 53 0 C++ -
Untitled Mar 22nd, 2026 Never 65 0 MySQL -
Untitled Mar 20th, 2026 Never 71 0 Python -
Untitled Mar 20th, 2026 Never 61 0 Python -
Untitled Mar 20th, 2026 Never 65 0 Python -
Untitled Mar 18th, 2026 Never 57 1 Python -
Untitled Feb 22nd, 2026 Never 59 0 Python -