# Tag Archives: Zoho

Write a program to Validate an IPv4 Address. According to Wikipedia, IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each… Read More
Write code to convert a given number into words. For example, if “1234” is given as input, output should be “one thousand two hundred thirty… Read More
Given two numbers represented by two linked lists, write a function that returns the sum list. The sum list is linked list representation of the… Read More
Given a string, find the longest substring which is palindrome.  For example, Become a success story instead of just reading about them. Prepare for coding interviews… Read More
Given a binary matrix, print all unique rows of the given matrix.  Example: Become a success story instead of just reading about them. Prepare for coding… Read More
Given a partially filled 9×9 2D array ‘grid[9][9]’, the goal is to assign digits (from 1 to 9) to the empty cells so that every… Read More
In a party of N people, only one person is known to everyone. Such a person may be present in the party, if yes, (s)he… Read More
Given an unsorted array of nonnegative integers, find a continuous subarray which adds to a given number. Examples :  Input: arr[] = {1, 4, 20, 3,… Read More
Given weights and values of n items, put these items in a knapsack of capacity W to get the maximum total value in the knapsack.… Read More
Given a 2D array, print it in spiral form. See the following examples. Examples: Become a success story instead of just reading about them. Prepare for… Read More
We have already discussed Overlapping Subproblems and Optimal Substructure properties. Now, let us discuss the Longest Increasing Subsequence (LIS) problem as an example problem that can… Read More
Given an array and an integer K, find the maximum for each and every contiguous subarray of size k. Examples : Become a success story instead… Read More
Given an array, print the Next Greater Element (NGE) for every element. The Next greater Element for an element x is the first greater element… Read More
Difficulty Level: Rookie Write a C function to insert a new value in a sorted Circular Linked List (CLL). For example, if the input CLL is… Read More
Given an array of n elements that contains elements from 0 to n-1, with any of these numbers appearing any number of times. Find these… Read More