Code For Alls..!

get the code!!

Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Friday, 15 September 2017

                                                                          Average Speed A single line L with a set of space separated values indicating distance...

Sunday, 10 September 2017

                                          The Least Used(LRU) cache algorithm The least recently used(lru) algorithm exists the elements from the cache(when it's full) that was least recently used.After an element is requested from the cache,...

Thursday, 31 August 2017

An array of N integers is passed as the input to the  program and the program must print the array after reversing it. Complete the method reverse so that the program can execute successfully. Input Format: The first line contains N. The second line contains N integer values each separated by a space. Output Format: The first line contains...

Saturday, 22 July 2017

Given integers, count the number of pairs of integers whose difference is . Input Format The first line contains and . The second line contains numbers of the set. All the numbers are unique. Constraints Each integer will be greater than and at least smaller than . Output Format An integer that tells the number of...
Watson gives Sherlock an array of length . Then he asks him to determine if there exists an element in the array such that the sum of the elements on its left is equal to the sum of the elements on its right. If there are no elements to the left/right, then the sum is considered to be zero. Formally, find an , such that, . Input Format The...