Write test cases for the above function.
Software Development Interview Questions
37,005 software development interview questions shared by candidates
find if string1 exists in string2, give test conditions
Write code in your favorite programming language that will accept two strings and return true if they are anagrams.
How many people can you stuff in a school bus
Given inorder and preorder traversals of a tree, reconstruct the tree.
Given a string "aaabbc", convert it to "3a2b1c". Output the result only its length is smaller than the input length.
Given an array of positive and negative numbers, give an algorithm that would find the sequence of numbers that give the largest sum. The numbers have to be in sequential order.
Write code to search a substring from another string
Find cycle in linked list.
Suppose you have a C++ base class and several classes that inherit from it. What might happen if you do not write a virtual destructor for the base class?
Viewing 1081 - 1090 interview questions