Wipro Technologies Interview Questions
- 0of 0 votes
AnswersA and B are playing a perfect 8-9 game. The rules are pretty simple. At each point, you can either insert an 8 at the end of the previous number or a 9. one 8 and one 9 forms a pair. a 9 can only be inserted if there is an 8 which does not form a pair. Perfect solution is the one which has all its numbers in pair. Find out all the possible perfect outcomes of the game in lexicographic order.
- valencia.lucky February 26, 2018 in India
Input-
Input 1: Max length of number
Output-
Your array must return an array of string s containing all possible outcomes.
Example 1:
Input: 4
Output: {"8899", "8989"}
Explanation: There can be only 2 possible outcomes out of 4 as nine must follow eight.
Example 2:
Input: 6
Output:{"888999","889899","889989","898899","898989"}
Explanation: The possible outcomes are 5.| Report Duplicate | Flag | PURGE
Wipro Technologies Senior Software Development Engineer Algorithm - -2of 2 votes
AnswersDid anyone given JPMC java coding test in Jersey city or new York?
- nishad.parkhi September 29, 2015 in United States| Report Duplicate | Flag | PURGE
Wipro Technologies Tech Lead - 0of 0 votes
AnswersPlease provide Oracle SQL and PLSQL questions
- subhasinibhosal1004 July 17, 2015 in India| Report Duplicate | Flag | PURGE
Wipro Technologies Software Developer SQL - 0of 0 votes
Answersroot, directory, 128, admin, NONE
- vijayinani May 01, 2014 in India for Java
users, directory, 512, admin, root
santana, directory, 1024, santana, users
santana.jpg, photo, 128000, santana, santana
Project.doc, document, 256000, santana, santana
Incredibles.mpg, movie, 4123456123, santana, santana
marcus, directory, 128, marcus, users
Resume.doc, document, 256000, marcus, marcus
This contains information about files stored in a file system. Each line corresponds to one file, and the fields are separated by commas. The first field contains the filename, the second contains the file type, the third field is the size of the file in bytes, the fourth field is the username of the owner of the file, and the last field is the name of the parent directory of this file (i.e. the name of the directory in which this file is located.) Note: the special parent directory name NONE indicates that this file is the root directory of the filesystem. Also, for the purposes of this program, assume that all file/directory names are unique in the system.
write a Java program which reads data in this format from a file, parses it, and figures out the total size of storage consumed by each directory in this system. The size of storage consumed by any directory is defined as the sum of the size of this directory, sizes of all the files in this directory and the total storage sizes consumed by all the directories in this directory. Your program should write the name of each directory, and the total storage consumed by it. The output should have one directory per line, and the format should be dirname: size.
Output should be:
santana: 4123841147
marcus: 256128
root: 4124097915
users: 4124097787
Provide the best algorithm and java program.| Report Duplicate | Flag | PURGE
Wipro Technologies Applications Developer Algorithm - 0of 0 votes
AnswersWrite the code in C for the series eg: If a3b2c4 ..is taken then output should be aaabbcccc
- guptapayal493 December 02, 2013 in India for Rainbow| Report Duplicate | Flag | PURGE
Wipro Technologies Software Engineer / Developer Coding - 0of 0 votes
Answers#include <iostream> #include <stdio.h> using namespace std; class A{ public: void fun(int& temp){cout<<"am inside fun()"<<endl; temp = 2000; printf("in fun() temp[%p] temp val[%d]\n",&temp, temp); } }; const int temp=100; int main() { A a; printf("in main() temp[%p] temp val[%d]\n",&temp, temp); a.fun(const_cast<int&>(temp)); cout<<"temp:"<<temp<<endl; }
Questions:
- pradeep December 11, 2012 in India
1> when i run this pgm @ line "temp=2000;" pgm will crash. what is the reason for sigsegv in this case?
2> if i make const int temp=100; declaration inside main() then, no crash and value change (i.e. temp=2000;) persists only inside fun(). But in the scope of main() this changed value is not seen. whats happening here? But address of temp in both the cases shows the same!! how is this possible??| Report Duplicate | Flag | PURGE
Wipro Technologies Software Analyst C++ - 0of 0 votes
AnswersWrite a C++ program that connects to a MySQL server and displays the global TIMEZONE.
- javaprogrammer February 19, 2012 in India| Report Duplicate | Flag | PURGE
Wipro Technologies Software Engineer / Developer C++ - 0of 0 votes
AnswersHow to find out memory leak in a c/c++ program both static and dynamic memory leak.
- Anonymous November 15, 2011 in India| Report Duplicate | Flag | PURGE
Wipro Technologies Technical Architect - -1of 1 vote
Answersafter the memory allocated then we can removed elements from any where in the list
- rahul.singh0089 September 20, 2011 in India| Report Duplicate | Flag | PURGE
Wipro Technologies Software Engineer / Developer Arrays - 0of 0 votes
Answerswhat is better to use single linked list or double linked list
- rahul.singh0089 September 20, 2011 in India| Report Duplicate | Flag | PURGE
Wipro Technologies Software Engineer / Developer Linked Lists - -1of 1 vote
Answerswhy we used linked list, what's demand of linked list in the market
- rahul.singh0089 September 20, 2011 in India| Report Duplicate | Flag | PURGE
Wipro Technologies Software Engineer / Developer Linked Lists - 0of 0 votes
AnswerImplement "strstr" function in C. What is the time complexity of your algorithm
- Ali M March 03, 2011| Report Duplicate | Flag | PURGE
Wipro Technologies Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhy would you use an array vs linked-list
- Gayle L McDowell April 04, 2005| Report Duplicate | Flag | PURGE
Amazon Wipro Technologies Software Engineer / Developer Terminology & Trivia Linked Lists