you have an unlimited supply of $3 and $7 poker chips. What
is the largest integer value that you cannot make by
combining different numbers of chips?
Answers were Sorted based on User's Feedback
Answer / siberian
If you can make N with 3 and 7, then you can make all N+12,
N+13, N+14, ..., etc. The numbers that can't be made with 3
and 7 are 1, 2, 4, 5, 8, 11. Thus the max number that can't
be created is 11.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / orenise
Assume that the max integer value is (2^31 - 1)=2,147,483,647
then the answer is 2,147,483,646 since it is impossible to
have an even number created just from 3 and 7.
| Is This Answer Correct ? | 2 Yes | 7 No |
what is diff bet ref variable & instance of class
what is the main usage of an abstract keyword?please follow the program class A { void display() { System.out.println("hai"); } void print() { } } class B extends A { void print() { System.out.println("Hello"); } } In this program i was gives the implementation of print() according to my requirements in subclass.And there is no definition in superclass then why we can use abstract keyword before a method that i want to gives definition in other classes,is any mistakes in the above usage of method?
Write a program to read and print a text file on screen
Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.
in teradata level primary in table level allows duplicates why?
WHAT IS THE MEANING OF CONSTANT ...EXEEDS LENGTH LIMIT WHILE COPYING FROM PS FILE TO KSDS
how to data grid use in data bind?
Data Structure: How many comparisons are necessary to find the largest and smallest of a set of n distinct elements?
What is Partial class and its use?
along with oracle which language will be beneficial to have knowledge with,java,.net,since i m doing oracle have appeared for 8th sem BEIT,plz suggest
Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance
what is oops?