Fragen im Vorstellungsgespräch: Software engineer in Bengaluru, Indien
Fragen aus Vorstellungsgesprächen für software engineer, von Bewerbern geteilt
Top Vorstellungsgespräch-Fragen
Puzzle: How do you weight an elephant without using a weigh machine? 37 AntwortenUse a pool -> calculate the volume of water of the pool and the water level, put the elephant in the pool, take note of the level after the elephant after it is in the pool. By Archimedes principle, the volume of water dislocated is the same as the weight. So the weight of the elephant is the same as the difference in water volume. Not quite. The volume of the water is not the same as the weight of the elephant. You'd have to estimate the density of an elephant and multiply that by the volume of the water to get the mass, then multiply that by the acceleration due to gravity in water system (SI, English Customary, etc.) you're using. Luckily, mammals are mostly water (humans are around 70% water on average), so about 2/3 of the weight of the elephant would be equivalent to the weight of the water displaced. So you would have to estimate how dense the rest of the elephant is (since it'd be minerals and such, I'd say it's more dense than water) and follow the steps described above. Apply a known force to the elephant and measure the acceleration. Use physics to deduce the mass. Mehr Antworten anzeigen As it is not specified that the International System of Units must be used, define the Elephant unit (E) as the weight of your elephant. Your elephant then weights exactly 1E. Kyle I have to disagree with you. According to Buoyancy principle: Any object, wholly or partially immersed in a fluid, is buoyed up by a force equal to the weight of the fluid displaced by the object. So if you calculate the displaced fluid weight, which is quite easy in water as it is very close or equal to 1kg/L, you can get very close to the real weight of the elephant. Hmm, I think Kyle is right... and so are you when you say "Any object, wholly or partially immersed in a fluid, is buoyed up by a force equal to the weight of the fluid displaced by the object". IMHO elephants don't float... Actually Kyle is right. If we put something in the water, such as an sealed box with a ten pound weight inside (does not float), it will displace a proportionate amount of water. However, if we fill it up with a 50 pound weight, the same amount of water will be displaced, however. Fernando, you are using the Buoyancy principle. The Buoyancy principle is meant for objects that float (hence the word buoyancy-it means pressure to keep afloat). As Wouzz said, elephants don't float. You could just put a boat in water, measure displacement. Then put the elephant in the boat and take the difference. The displacement is going to equal mass as long as it's floating so you're good in a boat. Kyle was right that if you just threw an elephant in a pool, you would have you figure out density and all that. I would say bring a female elephant and let them enjoy life.. Isn't that just an improvised "weighing machine"? it sounds like you all are trying to determine whether an elephant is a witch (Monty Python reference). Instead of dealing with the whole mess of a wet elephant, why not use other pneumatic tools like an inflatable platform, an air pump, and a pressure sensor. See how much air pressure is required to lift the elephant. My experience is this, you don't have to have a perfectly correct answer. The goal of the question is to see if you can think around a problem. Besides elephants, I have heard 747's and aircraft carriers used as the object. A good answer shows that you thought of an alternate way of measurement, so the water displacement and pressure sensor ideas work. PS, if they ask you to weigh a 747, I would answer "Land it on an aircraft carrier and measure the additional water displacement!" I would use a see saw to weight my elephant. Using my weight (212 lbs in work wear), move the elephant until we balance, and then compare my distance to the pivot point to Clancy's distance to the pivot. (I named my elephant Clancy). The hardest part... finding a see saw strong enough to hold Clancy. Mehr Antworten anzeigen Archimedes Law of the Lever states: Magnitudes are in equilibrium at distances reciprocally proportional to their weights. "Give me a place to stand on, and I will move the Earth." Elephants DO float, even in fresh water. They're blubbery. Simple answer : Use a beam balance . Put elephant on one side and start throwing weights on the other side . When the beam is balanced you got the weight of the elephant equal to the sum of weights on the other ! Just ask him... Just find a person having a bad day and weigh him/her, help that person feel better, then weigh him/her again. The difference is the weight of the elephant you removed off his/her back. Works for monkeys too. one "weight"(s) by putting a weight on it note that the answer above is referenced to the question on THIS page which has been transcribed wrongly from the "home page" question (the "t" has been added) I would ask if it was an Indian elephant or an African elephant. I would solicit bids and then sub-contract the task to a reputable, cost-effective elephant weight service vendor, and let THEM decide the best approach.They can use a weigh machine or use any other method that does not require ME to use a weigh machine. The question (and answer) are no different than any other variation of, "How do you accomplish a task when you don't have the needed resources?" by using first clas lever. keep an elephant at known distance from the fulcrum; make the effort distance long enough that your weight balances the weight of an elephant; by using the formula load*load distance = effor*effortdistance( principle of lever) you already know load distance, effort distance and effort now you can calculate load, which is nothing but elephan'ts weight Mehr Antworten anzeigen By using the momentum conservation law, First I find a heavy enough object mith exact mass of m1 and then throw it with speed V1 to the elephant which is standing on a friction-less surface like ice or on plate with wheels under it to reduce the friction. after they meet, the elephant will move. and the object will change its direction and speed. Then I calculate the speed and direction of elephant and reflecting object, and finally I solve the vector equation below: m.v1=m.v2+M.V v1=vector of initial speed of object v2=vector of final speed of object M=elephant mass V=vector of elephant speed elevate the elephant to height "h". it will have potential energy of "U=mgh". hurl the elephant into a well which is vacumed well to avoid friction. at the end of the well, there is a pool of water with exact mass of " m' " and temprature of T1. after elephant reaches the pool he will give all of his energy to water causing water to become warmer Q=U. so mgh=m'c(T2-T1) with knowing g,h,m',c,T1 and T2 m can be calculated easily. place elephant on an iron plate and move it horizontally with steady speed v. and pass them through a constant magnetic field of B. change B untill the elephant start to move upward. read B and V. F=V x B is the force of magnetic field ( x denotes vector multiplication) which is now equal to weght force W=mg. knowing g the gravity constant, solve m. use SEE SAW put elephant on one side and on other side some men when it get balanced weighs the men Possible answers: 1. Zero. Take the elephant to space. The weight = 0. 2. I can guess it to around 150 kg ( there is fat person who lives next door and we call him an elephant his weight is 150 kg) I got asked this question. But the water displacement has gotten old. They prompted me for another answer. I said you measure the elephant and find out its volume in cubic meters. Then weigh its leg and measure it. Lets say the leg weighs 20 kgs and has a volume of 20 cubic metres. Then, each cubic metre weighs 1 kg. So if the total volume of elephant is 350 cubic meters, it will weigh 300 cubic metres. Take heavy weight gym dumbells keep start hanging with the one end of the rope an the other end to elephant and the rope goes over the pully,keep adding weight till elephant gets lifted esimate the answer to certain range and put it on a boat and if the boat shrinks it is more than the estimate weight else less else use F=MA forumula apply certain force and the calculate acceleration and then mass OK guys i take a boat which can carry more than a load of an elephant i keep the elephant in that boat [ there fore designed load = load of elephant+ X load] i will add some more load by boarding some swimmers one by one into boat if it starts sinking it means it reached designed load [designed load By allowing him to sit on us Mehr Antworten anzeigen Fernando,Your answer is really very wierd. First of all: rise in level of water will be equal to elephant's volume not weight. There is a vast difference in volume and weight. Second: if you think that you will estimate it's density to calculate it's weight then it will be a wierd thing because you will never be able to guess it right. Third: rise in level of water of pool will indicate the volume of submerged part of elephant and not whole elephant. If you think that you will submerge whole elephant then obviously you are killing it .So your answer is scientifically and economically wrong. I might suggest that you should take a help of a strong boat to determine elephant weight. take the boat in water and elephant on the boat.the boat will obviously sink a little.mark the level. now get elephant off the boat and put some weights on the boat till it reaches same level. now measure the weights and you will get the weight of elephant THANK YOU by counting the elephant letters, 8 letters is the answer. You don’t need a weigh machine to weight the elephant. The elephant is the weight Check the elephant has ever been weighed in near past and rely on that data |
The final round of interview was challenging in terms of how you pick scenarios from your career. 21 AntwortenOut of the 4 scenarios - I realized its better to show both sides of the coin and treaded one positive experience followed by negative experience. It was fulfilling to mention that a mistake was made due to XYZ reasons and was corrected in future assignments. Hi could you please share your contact number Hi, I have recently attended an interview with Shell last week and awaiting for my results. I also got through the first round i.e. the functional competency round on the F2F interview and also completed my behavioral round as well. My interview went very well as I had prepared as per there site and I was very positive and confident. Within 15mins, I got to know that I have made it to the 2nd round I.e. the behavioral round.They collected my photograph and had already taken my salary slips before the F2F interview. SO, can you tell me how much chances are there that I would get through Shell ? Results are expected this week. Mehr Antworten anzeigen Hello, given that they had collected your photograph and salary slips, I would say you have a real good chance of receiving an offer with Shell. All the best! Hi ABC can u share what kind of techincal question they have asked, r they asked to write program or only oral with usecases? as i am having my interview on next week for java developer. Hi, I understand they are checking the background as part of enhanced screening via a 3rd party agency? How long does this process take? What to expect? And does the status of the application in the Shell portal change regularly? I see it as Completed Assessment. Thanks for a reply. For me, they obtained declaration to carry out BG check 10 days prior to joining and I was not contacted further in this regard. For some colleagues, third party requested for additional docs. Am not sure on the status of my application on shell portal. Hi I have been scheduled for F2F interview for QA position on June 6th. Can anyone help me in knowing what kind of questions might come on my way in both Professional Assessment and Structured Assessment If anyone from QA had experience with Shell interviews please do reply. Hi there XYZ, I suppose your interview is already done, could you please assist me in Professional and Structural interview. what scenarios were asked and what all technical questions were put across. Any tip that i should keep in mind. Thanks in advance. Being low paid, will it damage my case if i ask for a 50% hike in case selected? I am awaiting result of final round in a week's time. Usually, Shell has a lower and upper salary limit for a specific salary group. No matter how low your current salary is, you ll be mapped to atleast the lower limit. In my case, I did not have to negotiate, but you may do so based on your requierments. i completed my final assessment on 8 th August. Dint receive any updated till now. please guide. Hi, I also attended interview in Shell this Wednesday, everything went fine.. but after all the rounds Hr didn't collect photograph or any Documents.. She just told me that within 2 weeks you will be getting result? Can you tell me, is that any chance that they will select me? Mehr Antworten anzeigen Same here, 2 rounds f2f completed, hr said they will get back to me within 2week, but they didn't collected any doc or photo, will I have chance of getting offer? Hi, Did you get ur call letter after your process was done. Hii, did u get ur offer letter? After final round of interview how many weeks they will take to tell the result? Did you get the offer and how long it took? Hi XYZ, did you get your interview feedback. How long they are taking to tell the feedback after attending the final assessment. Hi there, How long they take to give the feedback after the final assessment. I finished the final assessment on Oct 8, it's been a month now, still no update on it. Does shell confirm the outcome of interview or do we just need to wait for some indefinite time for a call from HR otherwise assume rejection? If this is the policy then how long should we wait? |
Come out with an algorithm for getting the column number provided the column name in a excel sheet and vice versa. Excel has a naming convention of A,B..Z,AA,AB,AC..ZZ,AAA... This had to be converted to the column numbers. A will be 1 and AA will 27.. Also the algorithm to find the name provided column number. 13 AntwortenIts conversion from decimal to base 26 with some exception like there is nothing maps to zero. There might be a better way to do it. void printColumn(uint32_t col) { col --; int div = 26; int add = 26; while( col / div ) { div *= 26; } div /= 26; while( div != 1) { printf("%c", (col / div) + 'a' - 1); col = col % div; div /= 26; } printf("%c\n", col + 'a'); } Opps above does not work after ZZ. The correct one is void printColumn(uint32_t col) { int a = 26; int denominator = 1; while(a 0; i /= 26) low += i; // if value is lower than lower bound, decrease quotient by one if( denominator != 1 && col < (quotient * denominator + low) ) { quotient --; } printf("%c", quotient - 1 + 'A'); col = col - denominator * quotient; denominator /= 26; } } Mehr Antworten anzeigen Let the size of the string asked is 3 e.g GHD . The formula to this : [ 26+26^2+...+ 26^(size-1) + (LetterIndex-1)*{26^(size-1)+....+(LetterIndex-1)*26}+Index ] In the code the above formula will use recursion to find the column number. The answer can be as simple as finding the first combination of number * i such that it is less then xcelcolvalue; ie repeat this till xcelColValue >= 26 ( 0 = 26){ int i = 1, num = 1; while((num * (i + 1)) 26){ i = 1; num++;} else i++; xcelNum -= num*i; sb.append((char) i); } if (xcelNum > 0) sb.append((char) xcelNum); return sb.toString(); } Also the above code is rough idea and not tested but gives enough idea on simplifying the solution. The code does not use lot of / and % calcuations but could elegantly find the solution. Note the Gaurd if(i > 26){ i = 1; num++;} else i++; which is important in finding the combination of num and i which multiples at least to xcelNum. I think the above is incorrect and it should be : public static String xcelString(int xcelNum) { StringBuffer sb = new StringBuffer(); while(xcelNum >= 26){ int i = 1; for(;(26 * (i + 1)) 0) sb.append((char) xcelNum); return sb.toString(); } Edge conditions aside, the program would be /* inputString - the column name. For e.g. "BZC" */ char [] columnName = inputString.toUpperCase().toCharArray(); int columnNumber = 0; for(int i = 0; i < columnName.length - 1; i++){ columnNumber = columnNumber + (int) Math.pow(26, (columnName.length - 1 - i)) * (columnName[i] - 64) ; } columnNumber = columnNumber + (columnName[columnName.length - 1] - 64); System.out.println("Column number is " + columnNumber); Edge conditions aside, the program would be /* inputString - the column name. For e.g. "BZC" */ char [] columnName = inputString.toUpperCase().toCharArray(); int columnNumber = 0; for(int i = 0; i < columnName.length - 1; i++){ columnNumber = columnNumber + (int) Math.pow(26, (columnName.length - 1 - i)) * (columnName[i] - 64) ; } columnNumber = columnNumber + (columnName[columnName.length - 1] - 64); System.out.println("Column number is " + columnNumber); int columnNumber(String col) { result = 0; for(i = 0;i< strlen(col) ; i++) { result *= 26; result + = col[i] - 'A' +1; } } int columnNumber(String col) { result = 0; for(i = 0;i< strlen(col) ; i++) { result *= 26; result + = col[i] - 'A' +1; } } public static String numToExcel(int n) { if(n 0) { int remainder = n%26; char newChar = (char) ('Z' - (26 -remainder)%26); result = newChar + result; n = (n-1)/26; } return result; } |
Scan an integer and print the alphabet so that: 1-A; 2-B...26-Z; 27-AA,28-AB,29-AC...52-AZ; 53-AAA,54-AAB,55-AAC...78-AAZ...etc.. If you provide an integer, say 28-it should print AB. If you scan another integer say 55, it should show AAC 13 AntwortenI was not able to complete within 20 minutes, hence got rejected. #include #include int main() { int n=0,ap=0; printf("Enter no - "); scanf("%d",&n); ap=n%26; while(n>26) { printf("A"); n-=26;; } switch(ap) { case 1 : printf("A"); break; case 2 : printf("B"); break; case 3 : printf("C"); break; case 4 : printf("D"); break; case 5 : printf("E"); break; case 6 : printf("F"); break; case 7 : printf("G"); break; case 8 : printf("H"); break; case 9 : printf("I"); break; case 10 : printf("J"); break; case 11 : printf("K"); break; case 12 : printf("L"); break; case 13 : printf("M"); break; case 14 : printf("N"); break; case 15 : printf("O"); break; case 16 : printf("P"); break; case 17 : printf("Q"); break; case 18 : printf("R"); break; case 19 : printf("S"); break; case 20 : printf("T"); break; case 21 : printf("U"); break; case 22 : printf("V"); break; case 23 : printf("W"); break; case 24 : printf("X"); break; case 25 : printf("Y"); break; case 0 : printf("Z"); break; default : break; } } #include #define N 26 int main(){ int i,no,no1; printf("\n Enter number : "); scanf("%d",&no); if(no 26){ printf("A"); no1 -= 26; } if(no == 0) no = 26; // code for finding the particular alphabet from A-Z for(i = no; i <=no; i++){ printf("%c",'@'+i); } } return 0; } Mehr Antworten anzeigen #include int main(){ int i,no,no1; printf("\n Enter number : "); scanf("%d",&no); if(no 26){ printf("A"); no1 -= 26; } if(no == 0) no = 26; // code for finding the particular alphabet from A-Z for(i = no; i <=no; i++){ printf("%c",'@'+i); } } return 0; } import java.util.Scanner; public class Alpha { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(),temp=0, count = 0,rem=0; String alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if(n26){ count = n/26; rem = n%26; if(rem != 0){ for (int i = 0; i < count; i++) { System.out.print("A"); } temp = n - count*26; System.out.print(alpha.charAt(temp-1)); } else{ for (int i = 0; i < count-1; i++) { System.out.print("A"); } System.out.println("Z"); } } } } #include int main() { int num; printf("enter a number\n"); scanf("%d",&num); while(num>26) { printf("A"); num=num-26; } if(num<=26) { printf("%c",num+64); } return 0; } #include int main() { int n; printf("Enter a Number ::: "); scanf("%d",&n); int tmp =n/26; int val=0; while (tmp>0) { tmp--; if (tmp==0 && n%26==0) { printf("Z"); val++; break; } if (!(tmp<0)) { printf("%c",65); } } if (val!=1) { printf("%c", (n%26)+64); } printf("\n"); } By mistake I pressed down vote. Nice code - > PoornimaB import java.util.*; public class Program3 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n26)&&(n52)&&(n<78||n<=78)) { int a=n%26; a--; int b=65+a; char ch=(char)b; if(n==78) ch='Z'; System.out.println("AA"+ch); } } } import java.util.*; public class Program3 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n26)&&(n52)&&(n<78||n<=78)) { int a=n%26; a--; int b=65+a; char ch=(char)b; if(n==78) ch='Z'; System.out.println("AA"+ch); } } } LANGUAGE OF MY CODE IS JAVA BUT IT WILL HELP YOU TO GET LOGIC public class part2 { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.println("enter a number"); int n=scan.nextInt(); int fact; fact=n/26; if(n%26==0){ fact=fact-1; } for(int i=0;i LEFT PORTION OF ABOVE CODE IS HERE for(int i=0;i static string Alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static void numToString(int num) { if(num<=26) { Console.Write(Alpha[num - 1]); return; } Console.Write('A'); numToString2(num - 26); } |
write a program to print the given series (user need to enter the nth series number from keyboard) 2,3,5,11,23,29,41,53,83,89 .....n 11 Antwortenimport java.util.Scanner; public class prg2 { public static void main(String[] args) { //2,3,5,11,23,29,41,53,83,89 .....n int i,count=0,n,j,flag,x=0; System.out.println("Enter number of term:"); Scanner sc=new Scanner(System.in); n=sc.nextInt(); for(i=2;true;i++){ flag=1; for(j=2;j<=i/2;j++){ if(i%j==0){ flag=0; break; } } if(flag==1){ ++count; if(count%4!=0){ System.out.println(i); ++x; } } if(x==n) break; } } } import java.util.Scanner; public class Series2 { static Boolean prime(int p) { for(int i=2; i what's the logic? Mehr Antworten anzeigen #include main() { int i,k,n,m,count=0; scanf("%d",&n); for(i=2;i<=n;i++) { for(k=0;k<=i;k++) { if((i%k==0)) count++; } if(count==2) m=2*i+1; count==0; for(k=0;(m!=0)&&(k<=m);k++) { if((m%k==0)) count++; } if(count==0) printf("%d",m); } } #include main() { int i,n,p,k,count=0,plus=0; printf(:enter the no\n"); scanf("%d",&n); for(i=2;i #include int prime(int num) { int i,c=0; for(i=2;i Answer is in java :100% correct public class ProgramDemo { public static void main(String[] args) { System.out.println("Enter the value :"); Scanner read = new Scanner(System.in); int number = read.nextInt(); for(int i=2;i<=number;i++){ if(Prime(i)){ if(Prime(2*i+1)){ System.out.print(" "+i); } } } } static boolean Prime(int a) { int temp, c; for (c = 2; c <= a - 1; c++) { temp = a % c; if (temp == 0) { return false; } } if (c == a) { return true; } return false; } } I Hope its helpful for you :) Plese give me one like for it .... Excellent bro import java.util.Scanner; public class HelloJava { public static void main(String args[]) { int i,flag=0; for( int x = 2 ;x<100 ;x++) { flag=0; for(i=2;i<=x-1;i++) { if(x%i==0) { flag = 1; break; } } if(flag==0) { for( i = 2; i Can anyone please explain the logic? #include #include void main() { int i; printf("Enter no. of terms \n"); for(i=2; i<=50 ; i= 2*i+1) { printf("\n %d", i); } return 0; } |
10 people can share a bucket of coins equally. A monkey steals one coin. The no of coins are one less than equal share. one person after the other tries to take the coin but monkey kills them(killing spree?? :-)). each time a person dies the no of coins are always one short of equal share. what were the no of coins originally?. 12 AntwortenI wont give the answer. Hint : know who divides you ;-) if monkey steal one coin then as per your ans coins==9. then one person dies so 9%9 is==0. which is not possible. it is not 20 also just to give a bigger hint.:-) Mehr Antworten anzeigen Exact answer is 30 coins. Since each time monkey kills one person. This is correct for 10 coins as well suppose initial coins were 30 then money steals one coin so #coins = 29. now 10 people are there and the no of coins are 1 less than equal share i.e if 30 coins were there 3 per person but only 29 coins are there. so this case is ok. lets look for 9 people, since monkey kills one guy. now for 9, 29 is not one short of equal share because 9*3 ==27 , 9*4 == 36 neither of which satisfy the condition. so 30 cannot be the original coins. same thing for 8,7,6,.. 10 coins cannot be the original. Please read the question carefully.. this hint will be the closest to the answer, keep this part of the question in mind : "each time a person dies the no of coins are always one short of equal share". I think it is 2520 i.e.LCM of 2-10 I think 2520 is perfect sweet:-) nice ans. also think of 10! since the numbers in factorial are the remaining people after each iteration(2x3x4x5x6x7x8x9x10) and they form factors of the factorial number. and the factorial - 1 will always be one less than equal share. this fits the solution:-) Multiples of 2520 will be the answer Yes any Common multiple of the factors is a solution. Answer is pretty simple: m%10=0 -----case 1 Lets assume n=m-1 Since the remainder is always same , when n is divider by any number from 10 to 1.. n%10 = n%9=.........=1 That means n+1 is completely divisible by all numbers from 10 to 1.. (Since it gives common remainder).. n + 1= Lcm of (1 to 10) = 2520 But we assumed n = m-1, so m -1+1 =m = 2520 Einer oder mehrere Kommentare wurden entfernt. |
Can't disclose the exact question because of NDA, but here's some food for thought: 3 can be written as 1+1+1, 1+2, 2+1 4 can be written as 1+1+1+1, 1+1+2, 2+2, 1+2+1, 2+1+1, 3+1, 1+3 Given an integer, how many possible expressions exist? (1+2 and 2+1 are different) 8 AntwortenThere are total 2 ^(n-1)-1 expressions exist for any integer to be written on the basis of integers < the given Integer. Like for n=3, total 2^(3-1)-1= 3 expressions. For 4, 7 expressions exist and so on. No f(1) = 0 f(2) = 1 f(n) = Σf(i) + (n-1), where i = 1 to n-1, n>2 Mehr Antworten anzeigen Ader Lee: Shouldn't it be: f(n) = Σf(i) + (n-1), , where i = 1 to n-2, n>2 (i ranges from 1 to n-2, not n-1) f(1) = 0 and f(i) = i - 1 + sum_{i = 0}^{i - 1} f(i) Writing it down helps to find the sum: f(1) = 0(0) f(2) = 1 + 0(1) f(3) = 2 + 1 + 0(3) f(4) = 3 + 3 + 1 + 0(7) f(5) = 4 + 7 + 3 + 1 + 0(15) The first term(i - 1) equals the number of second terms and the second terms are the sum of 2 powers - 1 from 0 to (i - 2) so f(i) = 2^{i - 1} - 1 Also there is a neat normal form to generate all variations. For the sake of simplicity I show it for i = 4: Start from 1 + 1 + 1 + 1 and for j in 1 to i - 1 add together j and (j + 1) and write down the numbers and mark the added number in the next iteration. | | | 2 + 1 + 1 1 + 2 + 1 1 + 1 + 2 From the marked numbers to (last - 1) run j and do the same as before. The first generates 2 more, the second 1 more and the last one none. gen by first | | 3 + 1 2 + 2 gen by second: | 1 + 3 We could also generate the one element sum(4) from the first one but it's not needed in the problem. Also this representation looks nicer in a tree form but I can only type text here. The marks moved to the begining of the rows since the forum probably has some nice mangling algorithm. I hope you can figure out how the normalisation works. Might post some python code which does this later. a coin change problem with little modification will do . |
How many rotations does earth make on its axis while going around the sun for one year. 12 AntwortenDepends on the Leap Year or non Leap Year 365 for Non Leap Year 366 for Leap Year The question is flawed. It should either ask how many days earth takes in one revolution around sun, or how many days are in a year. The leap year is something imaginary humans have concocted to make the calendars look good. You can't say once is 4 years earth takes an extra day to go around the sun. It's to get you thinking about casting... the calender is a double casted to an int! Mehr Antworten anzeigen 365.25 / yr I wouldn't say 365/ 366 leap year. Jain has a point.^ It's either 364.25 or 366.25 depending on whether the earth spins in the same direction as it goes around the sun or not (I don't remember which it is and can't deduce it from the information that's available to me without looking it up). Imagine if the Earth did not spin at all on its axis so it would seem as if a year was equivalent to one day. It will take the Earth rotating either 264.24 or 366.25 times depending on the direction to seem like the 365.25 days that it does take. Every year it takes 365.25 rotations but while making calendar we ignore that 0.25 for 3 years and add an extra day in 4th year. <b>365.25 is WRONG!!!</b> Actually <b>Anonymous</b> is right! Just think about this (lay it out on your desk): <ul> <li>How many days would there be if the earth would not revolve around its axis?</li> <li>How many days would there be if it turned once around it's axis?</li> <li>Now do again one, change the direction the earth revolves it's axis, but keep going the same direction around the sun ...</li> </ul> The concrete right answer is 366.25 Here you find details on the exact number (with other proof): :) This question makes no sense. It's other way around, only when earth complete one round, we call it a year. To make human calculations easy, we introduced leap yrs. 366 rotations per year with respect to a distinct star. 366 rotations in a no leap year with respect to distinct star. Einer oder mehrere Kommentare wurden entfernt. |
Only they need money no interview questions 9 AntwortenI said don't cheat Is it fake or real..they are asking money...! Is it real or fake, is it good to join in this company, please reply Mehr Antworten anzeigen fake company,they ask 1.5 to 2 for candidate,the r using an old deleated web site and making money there is no such company,so fresher dont join,also i meet an employee who is working there,he gave money and joined,starting 2 months had got 18k,then they r not giving salary.they will tel 3.60pa but the will not give it-seams there r only 30 to 40 member in this company they r making money,after some days they will close this company and start with new comany by giving their name,so dont join,if they call u then inform directly to the policestation,os that new canditates will not be cheated........they r only choosing fresher candidates,go through reviews and dont see starting review,see at the last.already joined candidates r not getting salary and no 1.5 back also.please share this to ur friends....they r playing with career fack company go through overview,u can see no founder details,no revenue details,nothing is there dont join fack,fake call letter,fake bond,fake salary,fake company.....dont get cheated I Think don't waste your money and time by this company .Its fake company if you should search on google any company having some wiki and pages . but it does not have any information company and simply open website .My suggestion for fresher don't waste your parents money .if you have any doubt search addresses of different locations in various countries . I Think don't waste your money and time by this company .Its fake company if you should search on google any company having some wiki and pages . but it does not have any information company and simply open website .My suggestion for fresher don't waste your parents money .if you have any doubt search addresses of different locations in various countries . I have facing same issues ,They demanded 2 lakhs k initially 30 k and i paid 30 k .But even i do not believe this company. interviewer also they asked 4 to 5 questions to java and then Hr round it will done 2 min .studs they are paying 3 they pay 15 to 18 k then ?????? .do not waste your parents money by giving that frauds Hrs .Thinks about yours parents their parents pain and do not lose your future. Be careful my brothers and sisters . I have facing same issues ,They demanded 2 lakhs initially 30 k and i paid 30 k .But even i do not believe this company.In interview they asked 4 to 5 questions to java and then Hr round it will done 2 min . They are paying 2 to 3 months 15 to 18 k then ?????? .do not waste your parents money by giving that frauds Hrs .Think about yours parents their pain and do not lose your future. Be careful my brothers and sisters . |
First round was online test which contains 75 aptitude,reasoning and english questions and 5 programs you have to execute either in c++ or java.Online test is conducted by deselect.this pattern is similar to the amcat pattern. 8 AntwortenWorst interview..they conducted this drive for software development role but in the interview they didn't ask not even a single questions on technical..Then i only told to the interviewee that i have done courses on java and testing..but they asked me only one question about my project and they rejected.. I really don't know on what basis they are selecting the candidates..but really feeling sad for not getting offer. Anyway company is good.. what is deselect?? couls you please tell me i have a interview tomorrow in legato health care technologies. Sorry that is not deselect its doselct..that's actually online platform to take test in first round Mehr Antworten anzeigen What are the programming questions given for you in the online test? Could u please tell me this company is in Hyderabad or not ...I attend an interview they took online xam in doselct and after that they sent an sms that you are shortlisted and come for face to face interview if u receive LOI u need to pay 12k for 2months of training period ......And then after that u qualify u will be placed in the company ....Is that true ?? I need an advice plse tell me is this company is located at hyderabad r not??after getting loi and training will the company give joining date r not?? is that true?? Will they charge Money for training ??? After training, again will their be any qualification....? |
Fragen in Vorstellungsgesprächen für ähnliche Jobs anzeigen
- Senior Software Engineer
- Softwareentwickler
- Software Developer
- Consultant
- Entwicklungsingenieur
- Software Development Engineer
- Ingenieur
- Engineer
- Manager
- Project Manager
- Senior Consultant
- Analyst
- Product Manager
- Projektmanager
- Business Analyst
- Research Scientist