Forum Posts
- 0 Answers A Question regarding placements
I'm studying Computer Science and Engineering in a local college in Bangalore, India where there are no proper placements ( a few small time tech companies come there, offering small packages) Should i continue in that college? Or write a entrance exam again next year and study in some good college where placements and teaching is good. I don't feel like studying there. I want to prepare for exam and get some NIT, whats your opinion?
- Ayazm.140895 August 31, 2013| Flag | PURGE - 11 Answers DATABASE DESIGN
Suppose I have tables student(sid,name,cid) and course(cid,cname)
- 4m7u1 August 29, 2013
how do i make sure that a student can take more than one course without redundant rows (like
sid name cid
101 xyz 02,
101 xyz 03,
101 xyz 04...ie it would be redundant if each student takes a large number of courses).| Flag | PURGE - 0 Answers Data structures problem-solving web site
Hi,
- saad0105050 August 27, 2013
What are some best web resources on data structures problems and solutions (excluding video lectures, online courses, etc.)?
Some days ago I came across one such site, it listed many problems (grouped by context, e.g. array, liked list, etc.) and had solution code in java. However, I forgot the site's name and cannot find it by googling. Does anybody have any clue?
Thanks,
Saad| Flag | PURGE - 0 Answers can any body give the logic of this problem 15 puzzle problem
Method: getRandomNumbersForGrid()
- rajmuna084 August 23, 2013
public int[] getRandomNumbersForGrid() {
int arr[] = new int[15];
// write the logic for the method
return arr;
}
Hint:
The base class has a method called getRandomNumber() which will return some random integer
value.
Usage:
int randomInt = getRandomNumber(); // how to call this method…
Use this method to generate a random integer value. This can be any value and make sure you
trim it down to some value between 1 to 15.
Fill the array ‘arr’ with random numbers from 1 to 15 without repeating any of the
numbers. This will help in populating the grid with randomly generated numbers| Flag | PURGE - 2 Answers Need help with string reversal
I am trying to reverse a string recursively.But I am getting an exception.Below is my code :
- dummycoder August 21, 2013
void reverse_string(char *str,int start,int end)
{
char temp;
if(start>end)
return;
temp=str[end];
str[end]=str[start];
str[start]=temp;
reverse_string(str,++start,++end);
}
Please help me out some one.I am unable to understand the reason for this exception.| Flag | PURGE - 2 Answers Rejected due to lack of experience after technical interview
I recently had a series of technical interviews for a data scientist position. To the best of my knowledge I answered all of the questions correctly, however I was rejected and the reason given was my lack of practical experience. This seems strange considering my experience did not come up at all during the technical interview. I would find it hard to believe that they would be too "scared" to tell me that it is actually because of my answers to the technical questions. I guess what confuses me is that the technical interview was independent of my past experience, so if the rejection was due to my lack of experience then why even have the technical interview?
- alex1988 August 20, 2013| Flag | PURGE - 8 Answers interview question on commvault
make a search engine for limited text file in which if u print any word on that search engine than show that text file in which have more than that word and that text file is come at first place on search engine
- anilbatch2005 August 20, 2013
plz help me as soon as possible| Flag | PURGE - 1 Answer Arrange the shuffled cards
You have a pack of cards. Each one is a plain card with a number on it. They are all shuffled. You are provided with an algorithm move(int cardNo). This method will pick the card (you passed as param) and put it at the top of all cards. i.e, push back all cards one step down and make your card at the top. Write an algorithm to sort all the cards so that No 1 is at the top and say No.52 is at the bottom. Your algorithm should order it in minimum number of moves. Use the method move(cardNo) in your code. Solution time complexity should be O(n). Assume move(cardNo) as O(1).
- vinodhinic August 19, 2013
Eg :[k 3 4 2 1 5 ] – your move should be to move 2 first and then 1. – No. of moves – 2 . Result : [ 1 2 3 4 5]
[ 1 2 4 5 3 ] – No. of moves – 3| Flag | PURGE - 0 Answers Can anyone please explain this below steps in this program
#include <stdio.h>
- mahi.raj56 August 17, 2013
#include <stdlib.h>
int main()
{
char fname[20][10],sname[20][10],surname[20][10];
char name[20][20],mobile[20][10],temp[20];
int i,j;
printf("Enter Names and Mobile Numbers:\n");
for(i=0;i<5;i++)
{
scanf("%s %s %s%s",fname[i],sname[i],surname[i],mobile[i]);
strcpy(name[i],surname[i]);
strcat(name[i],","); ( I am confused from this step onwards)
temp[0]=fname[i];
temp[1]='\0';
strcat(name[i],temp);
strcat(name[i],".");
temp[0]=sname[i][10];
temp[1]='\0';
strcat(name[i],temp);
}
}| Flag | PURGE - 4 Answers Decline Amazon SDE offer?
I've received a standard SDE offer from Amazon (95k salary, 10k relo, 39k cash bonus over 2 years, 53k restricted stock over 4 years). However, I already received and accepted an offer from a small pre-IPO company in SF 2.5 months ago. The salary is the same, just no sign-on bonuses aside from relo. I start in about a month.
- ano217 August 15, 2013
Is it okay to renege on the accepted offer and switch to Amazon?| Flag | PURGE - 6 Answers Resume confusion
Hi, I want to apply for Amazon, India. I have prepared a one page resume for that. When I show this to my friend who is already working in amazon, said resume should have more content and asked me to enlarge it to atleast three pages. He said that he also did the same when he was applying. can anyone tell me is it mandatory to have a resume of 3 pages?
- ajit August 14, 2013| Flag | PURGE - 3 Answers a given array and a given value, in the array find the biggest value which is smaller than the given number while has same 1s as the given value
Below is my answer, do you have better solutions?//a given array and a given value, in the array find the biggest value which is smaller than the given number while has same 1s as the given value
- studycoding August 11, 2013
//count 1s in a value.
#include <iostream>
int CountOnes( int value){
int count= 0;
while(value>0){
if((value&0x01) ==1)
count++;
value = value>>1;
}
return count;
}
int SearchValue(int *src, int array_size, int given_num){
int given_ones = CountOnes(given_num);
int des=-1;
for(int i=0; i<array_size; i++){
if(CountOnes(src[i])==given_ones && src[i]<=given_num){
if(des==-1){
des=src[i];
}else{
if(src[i]>des)
des=src[i];
}
}
}
return des;
}
int main(){
int array[]={1, 2, 3, 4, 5, 6, 7, 8 ,10 };
int num = 9;
std::cout<<"the number is "<<SearchValue(array, 10, num);
}| Flag | PURGE - 0 Answers Query related with Project part on Resume
I am a software developer with 2 years of experience. I completed my graduation from a less known university. I want to apply for Google. I have been practicing on algorithms and DS. I wanted to know how much the project part weighs on the Resume? I have undertaken 3 projects so far including my studies. Do I need to prepare some other(independent) project as well?
- marora August 11, 2013| Flag | PURGE - 1 Answer Question 1.3
From the book, 4th Edition, exercise #1.3
- davidjhp2 August 06, 2013
1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An extra copy of the array is not.
I copied the code she provided exactly into Eclipse:
I ran the program with input = "HelloHello";
I got output = "Helo";
Does this make any sense?| Flag | PURGE - 11 Answers Problem with question,
We have an array of numbers from 1 to 100. Two numbers are missing. Finding those two numbers using O(n) time and O(1) space. Noted that those numbers in the array are not sorted.
- Feurer August 04, 2013
example :
let there be an array [4, *missing*, 1, *missing*, 2]
As you can see, the missing is 3 and 5. Assuming that the array of numbers from 1 to 5 and two number is missing. Actually, it is [4, 1, 2] Without 3 and 5.
How to solve this ?
can you give code hints.
thank you.| Flag | PURGE - 2 Answers ARITHMETIC
A REPORT Has 20 SHEETS, EACH OF 55 LINES AND EACH SUCH A LINE CONSISTS OF 65 CHARACTERS. IF THE REPORT HAS TO BE RETYPED WITH EACH SHEET HAVING 65 LINES AND EACH LINE HAVE 75 CHARACTERS, THE PERCENTAGE OF REDUCTION OF NO OF SHEETS IS CLOSEST IS TO?
- HiMSajjan July 29, 2013| Flag | PURGE