Take a Test

Adaptive quizzes to evaluate your skillset

Ask a Question

Enagage the community to ask and learn

Create a Collection

Archive content for future reference


91
views
0
votes
1
answer
Check whether an arithmetic expression has balanced parentheses
  • Created: 1 month ago
  • Tags: stack stackqueuelinkedlist
338
views
0
votes
1
answer
Find next higher key in Binary Search Tree with parent pointer given
  • Created: 11 months ago
  • Tags: node binarysearchtree binarytree
207
views
0
votes
1
answer
Find next higher key in Binary Search Tree when the parent pointer is not given
  • Created: 11 months ago
  • Tags: node binarysearchtree binarytree
227
views
0
votes
1
answer
Print Binary Tree level by level with new line
  • Created: 11 months ago
  • Tags: node queue root
277
views
0
votes
1
answer
Print Binary Tree level by level
  • Created: 11 months ago
  • Tags: node queue root
205
views
0
votes
1
answer
Check whether a number is Ugly Number or not
  • Created: 11 months ago
  • Tags: uglynumber dynamicprogramming
183
views
0
votes
1
answer
Find nth Ugly Number
  • Created: 11 months ago
  • Tags: uglynumber dynamicprogramming
152
views
0
votes
1
answer
212
views
0
votes
1
answer
Divide the elements of an array into group of 3 or 7, instead of 5 in Deterministic Selection algorithm
  • Created: 1 year ago
  • Tags: timecomplexity deterministicselection sorting
239
views
0
votes
1
answer
Find two elements from an array whose sum equals a given element
  • Created: 1 year ago
  • Tags: timecomplexity linearithmictime array
324
views
0
votes
1
answer
Find all subsets of a fixed size k of the set [1, 2, 3... n]
  • Created: 1 year ago
  • Tags: subset set general
144
views
0
votes
1
answer
Derive an algorithm from two given algorithms
  • Created: 1 year ago
  • Tags: timecomplexity general
133
views
0
votes
1
answer
Design a function in a sequence (part 2)
  • Created: 1 year ago
  • Tags: inversion remove general
145
views
0
votes
1
answer
Number of comparisons to search an element in a bitonic array
  • Created: 1 year ago
  • Tags: searching sortedarray array
137
views
0
votes
1
answer
Number of comparisons in Nuts and bolts problem
  • Created: 1 year ago
  • Tags: sorting quicksort matching
248
views
0
votes
1
answer
Remove duplicates in a sorted integer array
  • Created: 1 year ago
  • Tags: sortedarray array searching
176
views
0
votes
1
answer
Remove duplicates in an integer array using additional data structure
  • Created: 1 year ago
  • Tags: timecomplexity array searching
151
views
5
votes
1
answer
206
views
0
votes
1
answer
162
views
0
votes
1
answer
Stack depth of the modified Quicksort algorithm
  • Created: 1 year ago
  • Tags: recursion array sorting
162
views
0
votes
1
answer
Sort the characters of a String
  • Created: 1 year ago
  • Tags: sorting character string
152
views
0
votes
1
answer
Find duplicates in a String
  • Created: 1 year ago
  • Tags: duplicate character string
181
views
0
votes
1
answer
Print permutation of a string
  • Created: 1 year ago
  • Tags: recursion character string
140
views
0
votes
1
answer
Time complexity of a datastructure by number of operations
  • Created: 1 year ago
  • Tags: sortedarray array general
148
views
0
votes
1
answer
Mathematical induction in recursion
  • Created: 1 year ago
  • Tags: recursion timecomplexity general
150
views
0
votes
0
answers
Find the missing number from a sorted list
  • Created: 4 months ago
  • Tags: sortedarray searching logarithmictime
152
views
0
votes
0
answers
Sort and merge two large data streams
  • Created: 4 months ago
  • Tags: mergesort sorting bigdata
98
views
0
votes
0
answers
Print the order of letters in sorting a list of sorted words
  • Created: 4 months ago
  • Tags: soting string
141
views
0
votes
0
answers
Longest subsequence with uniform frequency distributon
  • Created: 4 months ago
  • Tags: array searching
142
views
0
votes
0
answers
Find k^th largest element in a sorted matrix
  • Created: 4 months ago
  • Tags: lineartime sorting searching
115
views
0
votes
0
answers
Find Taxicab Numbers
  • Created: 4 months ago
  • Tags: general
212
views
0
votes
1
answer
Divide the elements of an array into group of 3 or 7, instead of 5 in Deterministic Selection algorithm
  • Created: 1 year ago
  • Tags: timecomplexity deterministicselection sorting
145
views
0
votes
1
answer
Number of comparisons to search an element in a bitonic array
  • Created: 1 year ago
  • Tags: searching sortedarray array
137
views
0
votes
1
answer
Number of comparisons in Nuts and bolts problem
  • Created: 1 year ago
  • Tags: sorting quicksort matching
248
views
0
votes
1
answer
Remove duplicates in a sorted integer array
  • Created: 1 year ago
  • Tags: sortedarray array searching
151
views
5
votes
1
answer
206
views
0
votes
1
answer
162
views
0
votes
1
answer
Stack depth of the modified Quicksort algorithm
  • Created: 1 year ago
  • Tags: recursion array sorting
162
views
0
votes
1
answer
Sort the characters of a String
  • Created: 1 year ago
  • Tags: sorting character string
140
views
0
votes
1
answer
Time complexity of a datastructure by number of operations
  • Created: 1 year ago
  • Tags: sortedarray array general
120
views
0
votes
1
answer
Order the sequence in an array
  • Created: 1 year ago
  • Tags: array sorting general
177
views
0
votes
1
answer
Search in partial sorted matrix
  • Created: 1 year ago
  • Tags: searching sorting matrix
123
views
0
votes
1
answer
Count number of occurence in a sorted array
  • Created: 1 year ago
  • Tags: sortedarray array searching
129
views
0
votes
1
answer
Search in a sorted array by value vs. index
  • Created: 1 year ago
  • Tags: sortedarray array searching
143
views
0
votes
1
answer
Find three elements from three sorted arrays
  • Created: 1 year ago
  • Tags: sortedarray array searching
152
views
0
votes
0
answers
Sort and merge two large data streams
  • Created: 4 months ago
  • Tags: mergesort sorting bigdata
193
views
0
votes
1
answer
Recursive version of Insertion Sort
  • Created: 1 year ago
  • Tags: basicsorting sorting recursion
170
views
1
votes
1
answer
Linear time algorithm to sort an array of two distinct elements
  • Created: 1 year ago
  • Tags: lineartime sorting basicsorting
126
views
0
votes
1
answer
Searching for an element in a 2-d sorted array
  • Created: 1 year ago
  • Tags: sortedarray array searching
148
views
0
votes
1
answer
Find smallest number greater than a given integer in an array
  • Created: 1 year ago
  • Tags: sortedarray array searching
298
views
0
votes
1
answer
Search in a bitonic array
  • Created: 1 year ago
  • Tags: sortedarray array searching
219
views
0
votes
1
answer
Find intersection of two sorted integer arrays
  • Created: 1 year ago
  • Tags: sortedarray array searching
149
views
0
votes
1
answer
Number of comparisons to find an element in a sorted array
  • Created: 1 year ago
  • Tags: sortedarray array searching
114
views
0
votes
1
answer
Sort 100 thousand integers (range given) in linear time
  • Created: 1 year ago
  • Tags: sorting lineartime bigdata
136
views
0
votes
1
answer
143
views
0
votes
1
answer
Running time of heapsort for a sorted array in ascending/descending order
  • Created: 1 year ago
  • Tags: timecomplexity heapsort sorting
338
views
0
votes
1
answer
Find next higher key in Binary Search Tree with parent pointer given
  • Created: 11 months ago
  • Tags: node binarysearchtree binarytree
207
views
0
votes
1
answer
Find next higher key in Binary Search Tree when the parent pointer is not given
  • Created: 11 months ago
  • Tags: node binarysearchtree binarytree
239
views
0
votes
1
answer
Find two elements from an array whose sum equals a given element
  • Created: 1 year ago
  • Tags: timecomplexity linearithmictime array
145
views
0
votes
1
answer
Number of comparisons to search an element in a bitonic array
  • Created: 1 year ago
  • Tags: searching sortedarray array
248
views
0
votes
1
answer
Remove duplicates in a sorted integer array
  • Created: 1 year ago
  • Tags: sortedarray array searching
176
views
0
votes
1
answer
Remove duplicates in an integer array using additional data structure
  • Created: 1 year ago
  • Tags: timecomplexity array searching
151
views
5
votes
1
answer
140
views
0
votes
1
answer
Time complexity of a datastructure by number of operations
  • Created: 1 year ago
  • Tags: sortedarray array general
169
views
0
votes
1
answer
Maximum Sum subarray
  • Created: 1 year ago
  • Tags: subarray array searching
125
views
0
votes
1
answer
Find element occurring k2 times in an array sized (n x k1)+k2
  • Created: 1 year ago
  • Tags: timecomplexity lineartime array
136
views
0
votes
1
answer
Find k normalizing the elements greater than k in an array
  • Created: 1 year ago
  • Tags: timecomplexity array searching
251
views
0
votes
1
answer
Find heavy integers
  • Created: 1 year ago
  • Tags: heavyinteger searching
129
views
0
votes
1
answer
Find the smallest element not in an array
  • Created: 1 year ago
  • Tags: array searching
124
views
0
votes
1
answer
Check if a given number is the sum of two numbers from two arrays
  • Created: 1 year ago
  • Tags: array searching matching
179
views
0
votes
1
answer
Find highest and lowest element in an array with minimum comparisons
  • Created: 1 year ago
  • Tags: array searching noOfComparisons
177
views
0
votes
1
answer
Search in partial sorted matrix
  • Created: 1 year ago
  • Tags: searching sorting matrix
154
views
0
votes
1
answer
Find 2nd largest number in an array with minimum comparisons
  • Created: 1 year ago
  • Tags: array searching noOfComparisons
142
views
0
votes
1
answer
Search smallest number in a binary matrix
  • Created: 1 year ago
  • Tags: binary searching matrix
177
views
0
votes
1
answer
Check if two arrays are permutation of each other
  • Created: 1 year ago
  • Tags: array searching permutation
152
views
0
votes
1
answer
Search the next highest number with same set of digits
  • Created: 1 year ago
  • Tags: searching
218
views
0
votes
1
answer
Remove duplicates in an integer array
  • Created: 1 year ago
  • Tags: array searching remove
123
views
0
votes
1
answer
Count number of occurence in a sorted array
  • Created: 1 year ago
  • Tags: sortedarray array searching
129
views
0
votes
1
answer
Search in a sorted array by value vs. index
  • Created: 1 year ago
  • Tags: sortedarray array searching
143
views
0
votes
1
answer
Find three elements from three sorted arrays
  • Created: 1 year ago
  • Tags: sortedarray array searching
126
views
0
votes
1
answer
Searching for an element in a 2-d sorted array
  • Created: 1 year ago
  • Tags: sortedarray array searching
162
views
0
votes
1
answer
Sort the characters of a String
  • Created: 1 year ago
  • Tags: sorting character string
152
views
0
votes
1
answer
Find duplicates in a String
  • Created: 1 year ago
  • Tags: duplicate character string
181
views
0
votes
1
answer
Print permutation of a string
  • Created: 1 year ago
  • Tags: recursion character string
98
views
0
votes
0
answers
Print the order of letters in sorting a list of sorted words
  • Created: 4 months ago
  • Tags: soting string
160
views
0
votes
1
answer
Huffman coding problem
  • Created: 6 months ago
  • Tags: array huffmancoding string
153
views
0
votes
1
answer
Check whether one string is a rotation of another
  • Created: 1 year ago
  • Tags: rotation character string
141
views
0
votes
1
answer
Check whether string is palindrome or not
  • Created: 1 year ago
  • Tags: palindrome character string
158
views
0
votes
1
answer
Check whether two strings are anagram
  • Created: 1 year ago
  • Tags: anagram character string
235
views
0
votes
1
answer
Reverse words in a sentence
  • Created: 1 year ago
  • Tags: character string reverse
127
views
0
votes
1
answer
Reverse a string in place
  • Created: 1 year ago
  • Tags: character string reverse
198
views
0
votes
1
answer
First non-repeating character in a string
  • Created: 1 year ago
  • Tags: character string
338
views
0
votes
1
answer
Find next higher key in Binary Search Tree with parent pointer given
  • Created: 11 months ago
  • Tags: node binarysearchtree binarytree
207
views
0
votes
1
answer
Find next higher key in Binary Search Tree when the parent pointer is not given
  • Created: 11 months ago
  • Tags: node binarysearchtree binarytree
227
views
0
votes
1
answer
Print Binary Tree level by level with new line
  • Created: 11 months ago
  • Tags: node queue root
277
views
0
votes
1
answer
Print Binary Tree level by level
  • Created: 11 months ago
  • Tags: node queue root
163
views
0
votes
1
answer
Unique binary search tree from n distinct nodes
  • Created: 8 months ago
  • Tags: node noofedges binarysearchtree
284
views
0
votes
1
answer
Check binary tree balanced or not
  • Created: 11 months ago
  • Tags: balancedtree binarytree
148
views
0
votes
1
answer
Sorted array to BST
  • Created: 11 months ago
  • Tags: sortedarray array binarysearchtree
332
views
0
votes
1
answer
Count smaller elements on right side in an array
  • Created: 11 months ago
  • Tags: array binarysearchtree binarytree
159
views
0
votes
1
answer
Find Lowest Common Ancestor in a binary tree
  • Created: 11 months ago
  • Tags: node binarytree
177
views
0
votes
1
answer
Inorder traversal of BST without extra space
  • Created: 11 months ago
  • Tags: binarysearchtree binarytree inordertraversal
132
views
0
votes
1
answer
Compute height of a tree at root
  • Created: 11 months ago
  • Tags: node root binarytree
127
views
0
votes
1
answer
Check if a pair of vertices have common neighbor
  • Created: 11 months ago
  • Tags: node binarytree
222
views
0
votes
1
answer
Check whether a binary tree is a binary search tree
  • Created: 1 year ago
  • Tags: node binarysearchtree pointer
147
views
0
votes
1
answer
In-order traversal : Binary search tree vs. Heap
  • Created: 1 year ago
  • Tags: binarysearchtree heap inordertraversal
131
views
0
votes
1
answer
Difference between binary search tree and heap
  • Created: 1 year ago
  • Tags: binarysearchtree tree heap
91
views
0
votes
1
answer
Check whether an arithmetic expression has balanced parentheses
  • Created: 1 month ago
  • Tags: stack stackqueuelinkedlist
227
views
0
votes
1
answer
Print Binary Tree level by level with new line
  • Created: 11 months ago
  • Tags: node queue root
277
views
0
votes
1
answer
Print Binary Tree level by level
  • Created: 11 months ago
  • Tags: node queue root
206
views
0
votes
1
answer
162
views
0
votes
1
answer
Stack depth of the modified Quicksort algorithm
  • Created: 1 year ago
  • Tags: recursion array sorting
258
views
0
votes
1
answer
Merge sort on LinkedList
  • Created: 1 year ago
  • Tags: mergesort array sorting
96
views
0
votes
1
answer
Doubly Linked list to a Singly Linked list
  • Created: 10 months ago
  • Tags: timecomplexity doublylinkedlist stackqueuelinkedlist
170
views
0
votes
1
answer
Delete a node in a singly Linked List having access to that node
  • Created: 1 year ago
  • Tags: node singlylinkedlist linkedlist
108
views
0
votes
1
answer
Find 'n' th last element in a singly Linked list
  • Created: 1 year ago
  • Tags: node linkedlist stackqueuelinkedlist
121
views
0
votes
1
answer
Stack using queue
  • Created: 1 year ago
  • Tags: queue stack stackqueuelinkedlist
121
views
0
votes
1
answer
Queue using stack
  • Created: 1 year ago
  • Tags: queue stack stackqueuelinkedlist
124
views
0
votes
1
answer
Reverse a doubly Linked List
  • Created: 1 year ago
  • Tags: node doublylinkedlist linkedlist
120
views
0
votes
1
answer
Reverse a Linked List with recursion
  • Created: 1 year ago
  • Tags: node recursion reverse
105
views
0
votes
1
answer
Remove duplicates in an unsorted Linked List
  • Created: 1 year ago
  • Tags: node stackqueuelinkedlist linkedlist
141
views
0
votes
1
answer
Create a Linked List
  • Created: 1 year ago
  • Tags: node linkedlist stackqueuelinkedlist
110
views
0
votes
1
answer
Detect a loop in a Linked List
  • Created: 1 year ago
  • Tags: node stackqueuelinkedlist linkedlist
104
views
0
votes
1
answer
Delete last link of a Linked List
  • Created: 1 year ago
  • Tags: node linkedlist stackqueuelinkedlist
478
views
0
votes
1
answer
Delete a node in a Singly Linked List
  • Created: 1 year ago
  • Tags: node singlylinkedlist linkedlist
205
views
0
votes
1
answer
Check whether a number is Ugly Number or not
  • Created: 11 months ago
  • Tags: uglynumber dynamicprogramming
183
views
0
votes
1
answer
Find nth Ugly Number
  • Created: 11 months ago
  • Tags: uglynumber dynamicprogramming
174
views
0
votes
1
answer
Find maximum sum subarray (non-contiguous)
  • Created: 6 months ago
  • Tags: subarray array dynamicprogramming
133
views
0
votes
1
answer
Find maximum sum subarray
  • Created: 7 months ago
  • Tags: subarray array dynamicprogramming
86
views
0
votes
1
answer
Compute binomial coefficient
  • Created: 11 months ago
  • Tags: recursion binomial dynamicprogramming