Forum Posts
- 0 Answers A challenging Java Question
Write a Java program to find out minimum numbers from fibonacci series required such that sum of numbers should be equal to a given Number N?
- abdulhameed.pathan November 03, 2014
Note : repetition of number is allowed.
Example1.
N= 7;
answer = 2 (5 + 2 = 7)
Example 2.
N = 70;
Answer = 3 (34 + 34 + 2)| Flag | PURGE - 0 Answers A challenging Java Question
Write a Java program to find out minimum numbers from fibonacci series required such that sum of numbers should be equal to a given Number N?
- abdulhameed.pathan November 03, 2014
Note : repetition of number is allowed.
Example1.
N= 7;
answer = 2 (5 + 2 = 7)
Example 2.
N = 70;
Answer = 3 (34 + 34 + 2)| Flag | PURGE - 0 Answers A challenging Java Question
Write a Java program to find out minimum numbers from fibonacci series required such that sum of numbers should be equal to a given Number N?
- abdulhameed.pathan November 03, 2014
Note : repetition of number is allowed.
Example1.
N= 7;
answer = 2 (5 + 2 = 7)
Example 2.
N = 70;
Answer = 3 (34 + 34 + 2)| Flag | PURGE - 0 Answers Amazon Rejection
{{{I attend amazon interview today for technical analyst.. Even though i made it well , the HR said i need to improve more without a reason . Being a fresher i had face to face interview for 2 hours nearly ... the questions were from quantitative apps , c ,sql and linux and i was made to write code on board .. i seriously wonder what really they expect from a fresher ??? the most annoying thing is , even aft answering to all his questions ,he said "our expectations are high . u need improvement" .. hopeless company !!! waste of time !!! - rezmiarts October 31, 2014| Flag | PURGE - 0 Answers Amazon Rejection
{{{I attend amazon interview today for technical analyst.. Even though i made it well , the HR said i need to improve more without a reason . Being a fresher i had face to face interview for 2 hours nearly ... the questions were from quantitative apps , c ,sql and linux and i was made to write code on board .. i seriously wonder what really they expect from a fresher ??? the most annoying thing is , even aft answering to all his questions ,he said "our expectations are high . u need improvement" .. hopeless company !!! waste of time !!! - rezmiarts October 31, 2014| Flag | PURGE - 0 Answers Amazon Rejection
{{{I attend amazon interview today for technical analyst.. Even though i made it well , the HR said i need to improve more without a reason . Being a fresher i had face to face interview for 2 hours nearly ... the questions were from quantitative apps , c ,sql and linux and i was made to write code on board .. i seriously wonder what really they expect from a fresher ??? the most annoying thing is , even aft answering to all his questions ,he said "our expectations are high . u need improvement" .. hopeless company !!! waste of time !!! - rezmiarts October 31, 2014| Flag | PURGE - 0 Answers Hybris or Big Data
I have 2 yrs of java exp with EJB and spring.Now I am about to switch project , but I am quite confused if I should stay in spring only or explore new frameworks with java.
- first.last.4242 October 30, 2014
Which one should I choose for my future.I am completely confused.
Please help!| Flag | PURGE - 0 Answers Question to all you nerds
Question to all you nerds : -
- dd.metro October 30, 2014
(Not an interview question)
Need a math formula to determine a result number based on provided input (Row number: a, Column number: b, Total Rows: p, Total column: q). let me explain the scenario :
Scenario 1:
01 02 06 07 14 15 22 23 30 31 38 39
03 05 08 13 16 21 24 29 32 37 40 45
04 09 12 17 20 25 28 33 36 41 44 46
10 11 18 19 26 27 34 35 42 43 47
For the above given matrix. If you notice numbers are ordered diagonally down and then diagonally upwards.
If Row number is given as 1 and column 1 for total rows 4 and column 12 I should get value 1
If Row number is given as 2 and column 3 for total rows 4 and column 12 I should get value 8
If Row number is given as 3 and column 12 for total rows 4 and column 12 I should get value 46
Formula should be generic to derive any number provided row and col.
Scenario 2:
Similar to above if number of rows increases from 4-5 still the formula should be able to derive the number correctly provide those row/col/total row and total columns.
01 02 06 07 15 16 25 26 35
03 05 08 14 17 24 27 34
04 09 13 18 23 28 33
10 12 19 22 29 32
11 20 21 30 31
Please help. Thanks in advance| Flag | PURGE - 4 Answers Calculate the Sum Seed of a number
A number X is called a sum seed of another number Y, if we can obtain Y by adding the digits of X to X. For example, 256 = 245 + 2 + 4 + 5. Here 245 is the sum seed of 256.
- sawrubh October 19, 2014
Now given a number, we need to find out all it's sum seeds and print it otherwise tell if there are no sum seeds of the given number.| Flag | PURGE - 1 Answer Graph -Adjaceny matrix
Please help me urgently with this question.The code has to be in C.
- rohan.singh13 October 18, 2014
I am confused how to read the file and store it in a 2d array which may be of varying size depending on the input matrix size.
Given a graph in Adjacency Matrix format. Write a program to compute whether two given vertices of the
graph (vertex i and vertex j) are adjacent or not. The graph has to be read from a file in the following format
–
Sample input file:
0,1,1,0,0
1,0,0,1,1
1,0,0,0,0
0,1,0,0,0
0,1,0,0,0
Values of i & j are to be taken as input using scanf() statement in the program. The output should be printed
to the terminal. You can assume that the number of vertices in the whole graph to be less than 10.| Flag | PURGE - 1 Answer Google Interview Question
Generally it is preferred to pass pointer to structure to a function in C, in order to avoid copying during function call. This has an unwanted side effect that the called function can modify the elements of the structure inadvertently. What is a good programming practice to avoid such errors without compromising on the efficiency of the function call ?
- shubhamchawla00 October 17, 2014| Flag | PURGE - 1 Answer Amazon written test
Assuming int to be of 4 bytes, what is the size of class Derived ?
- shubhamchawla00 October 17, 2014
class Base {
protected:
int x;
public:
Base(int x_) : x(x_) {}
int get_x(void) { return x; }
};
class Derived : public Base {
int y;
public:
Derived(int x_,int y_) : Base(x_), y(y_) {}
int get_y(void) { return y; }
};| Flag | PURGE - 1 Answer Amazon written test
What will be the output of the following C++ program ?
- shubhamchawla00 October 17, 2014
#include <iostream>
class A {
int x;
int y;
int z;
public:
A() : x(5), y(10), z(15) {}
A (A const & a) {}
int get_x(void) { return x; }
};
int main() {
A a;
A aa(a);
std::cout << aa.get_x() << std::endl;
return 0;
}| Flag | PURGE - 0 Answers Solve T(n) = 2T(n-2) + 1.
Solve T(n) = 2T(n-2) + 1.
- bjkountz1989 October 14, 2014| Flag | PURGE - 0 Answers Do most companies use Jigy Generator to create Java projects?
Recently I've been getting companies asking about whether I know how to code on Jigy Generated projects. Is this like the new maven or something? I read up on it at getjigy.com but I'm just kind of confused as to whether this is the next big thing or not. Can someone please answer this for me?
- do.sumthin.different October 13, 2014| Flag | PURGE