Kth Smallest Element in a BST
in Programming on Tree, Interview, Python
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.
in Programming on Tree, Interview, Python
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.
in Programming on String, Interview, Python
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy approach; that is, pack as many words as you can in each line.
in Programming on Search, Interview, Python
Write a function to find the longest common prefix string amongst an array of strings.
in Programming on Linked list, Interview, Python
Given a singly linked list, modify the value of first half nodes such that :
in Programming on Heap, Interview, Python
Merge k sorted linked lists and return it as one sorted list.