Month: October 2017

Print Largest Even Number – Digits

                 Print Largest Even Number - Digits [C, C++, JAVA] Given a number N as the input, print the largest even number E that can be formed using the digits present in the number. (There will be at least one even digit). Input Format: The first line contains

Skipping Subpath Sum

           Skipping Subpath Sum There is a tree  with  vertices numbered from  to . In addition,  is the value assigned to the -th vertex. Consider any path  in the tree. We define a skipping sum of this path to be the maximum of the two below values:  where  is the maximum odd integer not greater than .  where  is the maximum even


                     Keywords Given a paragraph of space-separated lowercase English words and a list of unique lowercase English keywords, find the minimum length of the substring of which contains all the keywords that are separated by space in any order. Note: The keywords should be space separated words but

Collatz Sequence Sum

             Collatz Sequence Sum   The following iterative sequence is defined for the set of positive integers:                                                       If at some point the value

Castle Towers

                  Castle Towers Eragon is a dragon that is visiting the town of Osaka. There are n towers of various heights in the city, and tower i has height of height i. Because the taller towers tower over the shorter ones, Eragon can only blow out the

Fraudulent Activity Notifications

             Fraudulent Activity Notifications Hacker Land National Bank has a simple policy for warning clients about possible fraudulent account activity. If the amount spent by a client on a particular day is greater than or equal to 2X the client's median spending for the last d days, they send the client a notification about

Accolite Java Hiring Challenge

                                  Accolite Java Hiring Challenge   Java MCQ's:     1.      What is the output of the following Java code: import java.util.*; class ABC     {         public int i = 0;         public ABC(String text) /* Line 4

Best Subsequence

                                  Best Subsequence   You are given an array of length N. - A subsequence is a sequence that can be derived from another sequence by deleting  some elements without changing the order of the remaining elements. You know that