• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions

Placement Papers with Solutions

Company

  • 3i-Infotech 345
  • Accenture 548
  • ADITI 81
  • Athenahealth 72
  • CADENCE 37
  • Capgemini 519
  • CMC 49
  • Cognizant 29
  • CSC 480
  • CTS 1340
  • Dell 49
  • Elitmus 44
  • GENPACT 516
  • Google 55
  • HCL 217
  • Hexaware 92
  • Huawei 81
  • IBM 1714
  • IGate 169
  • Infosys 2050
  • L&T 299
  • Microsoft 61
  • Miscellaneous 204
  • Oracle 74
  • Other 95
  • Patni 199
  • Sapient 44
  • Sasken 31
  • Self 38
  • Syntel 530
  • TCS 9109
  • Tech Mahindra 500
  • Wipro 1182

Exam

  • ACIO 119
  • AIEEE 334
  • AMCAT 2636
  • Assessment 108
  • Bank 22
  • CAT 988
  • CMAT 82
  • Cocubes 39
  • Elitmus 2952
  • Exam 39
  • Gate 846
  • GMAT 107
  • Gmate 29
  • GRE 469
  • IIT-JEE 471
  • ITC 28
  • Maths Olympiad 205
  • MBA 3481
  • MCA 32
  • Other 159
  • Others 25
  • R-SAT 111
  • Self 68

Government Jobs Exams

  • Bank Exam 478
  • CDS 57
  • CTET 21
  • IBPS 1258
  • IES EC 44
  • KVPY 364
  • NDA 481
  • NTSE 36
  • REVENUE OFFICE 53
  • RRB 1029
  • SSC 1294
  • UPSC 441

Interview

  • HR Interview 426
  • HR Round 41

Maths Puzzle

  • A website 299
  • Book 23779
  • Campus 250
  • CMAT 49
  • Exam 86152
  • General 399
  • Interview 141
  • M4maths 295
  • Maths 226
  • Orkut 27
  • Other 72
  • Others 1356
  • Reasoning 101
  • Self 3157

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70
Keep an EYE (0)Interview Experience (261)
Solved Question (6040) UnSolved Question (153944)
Pages: 11
Advertisements

(#M40059690) MICROSOFT QUESTION Algebra Keep an EYE Keep an eye puzzle Keep an eye puzzle

If m^2 + m^-2=23
then find
m^3 + m^-3

Asked In Microsoft Pawan Pandey (10 years ago)
Unsolved Read Solution (8)
Is this Puzzle helpful?   (12)   (1) Submit Your Solution Stock and Shares

(#M40038199) DATA STRUCTURE QUESTION Palindromic Prime Keep an EYE Keep an eye puzzle Keep an eye puzzle

A palindrome is a string that reads the same forward and backward. An integer is called prime-palindromic if it is possible to construct a palindrome by concatenating all of its prime factors (without leading zeros). Each prime factor should be used as many times as its power in factorization. 48 is prime-palindromic because its prime factors are 2, 2, 2, 2, 3 (2 should be used 4 times, 3 should be used once) and we can obtain the palindrome 22322. 2261 is prime-palindromic also because its prime factors are 7, 17, and 19, which can be concatenated to form the palindrome 71917 33 is also not prime-palindromic (its prime factors are 3 and 11). Write a program which takes a number from user and then calls a function to extract the prime factors in an array(declare an array of max size 100 and then initialize them to some dummy value).Now write a recursive function to form all possible permutations from these factors and then if any of these permutations is a palindrome then your original number is prime palindromic. ((write recursive function to check palindromes and get permutations)

Asked In DATA STRUCTURE Pawan Pandey (11 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (1) Submit Your Solution Technical
Advertisements

(#M40038191) C QUESTION Rabbit and Carrot Keep an EYE Keep an eye puzzle Keep an eye puzzle

A rabbit walk is defined by a sequence of jumps which starts from a
location and returns back to the starting location. We can repesent such
a Rabbit walk by an array A of n numbers, where A[i] denotes the next
array index to which the rabbit should jumps from the location i.
For example, the sequence: 2 3 4 5 0 1 indicates that the Rabbit follows
the jump sequence: 0->2, 2->4, 4->0 and stops.

Your also given another array B of N numbers, such that
B[i] denotes the number of carrots available at location i.
Your task is to compute the number of carrots that a rabbit can collect
when it makes rabbit walk(s) from various start position(s).
A sample input is provided for more clarification(s).

Input:
The first line will contain a single integer N which is the size of the
array (2<= N <= 10000).
The next line contains a series of N integers which define the array A.
The next line contains a series of N integers which define the array B.
You can be assured that all the calculations fit into a 32 bit signed
integer type(int in C).

The input is given such that, a rabbit walk will always exist with
start position as 0.

Output:
It should contain the number of carrots collected
when 0 is treated as the start location.

Sample Input:
6
2 2 2 2 -4 -4
2 3 6 3 0 1

Sample Output:
8

Asked In C Pawan Pandey (11 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Program

(#M40038182) OTHER QUESTION Physical Balance Keep an EYE Keep an eye puzzle Keep an eye puzzle

Your friend wants to set up a small scale industry which produces weights used in a
physical balance.

His customers are the shopkeepers located in his state. Each shopkeeper wants a set of
weighing objects using which he can produce all integer weights in range [1,n], where n may
vary for each shopkeeper. For a small grocery shop, n could be upto 50 Kg, and for a whole
sale shopkeeper n could be 1000 Kg. For a given n, a trivial solution is that the shopkeeper
keeps n weighing objects each of weight one kilogram. But it is very cumbersome to use and
manage so many weighing objects. So he wants the minimum number of weighing objects
using which he can weigh any object whose weight is in the range [1, n]. Such a set of
weighing objects is called a Min-weighing-objects(n) set. Such set need not be unique. For
example, {1, 3, 5} as well as {1, 2, 6} can serve to be a Min-weighing-objects(9) set.
Your friend wants to expand his business. So he wants to ensure that his customers get
full satisfaction. In particular, for a given n, he would like to present to the shopkeeper all
possible Min-weighing-objects(n) sets. The shopkeeper can place an order for the set of his
choice. Finally your friend delivers weights of that set to the shopkeeper. Your friend is
unable to come up with any solution to this problem. He approaches you with this problem.
Solve this problem. More formally, he wants you to write a program which for a positive
integer n, enumerates all Min-weighing-objects(n) sets.

Asked In Other Pawan Pandey (11 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40038181) C++ QUESTION Norvig Spellinbg Corrector Keep an EYE Keep an eye puzzle Keep an eye puzzle

What I wanted to do here is to develop, in less than a page of code, a toy spelling corrector that achieves 80 or 90% accuracy at a processing speed of at least 10 words per second.

So here, in 21 lines of Python 2.5 code, is the complete spelling corrector:

import re, collections

def words(text): return re.findall('[a-z]+', text.lower())

def train(features):
model = collections.defaultdict(lambda: 1)
for f in features:
model[f] += 1
return model

NWORDS = train(words(file('big.txt').read()))

alphabet = 'abcdefghijklmnopqrstuvwxyz'

def edits1(word):
splits = [(word[:i], word[i:]) for i in range(len(word) + 1)]
deletes = [a + b[1:] for a, b in splits if b]
transposes = [a + b[1] + b[0] + b[2:] for a, b in splits if len(b)>1]
replaces = [a + c + b[1:] for a, b in splits for c in alphabet if b]
inserts = [a + c + b for a, b in splits for c in alphabet]
return set(deletes + transposes + replaces + inserts)

def known_edits2(word):
return set(e2 for e1 in edits1(word) for e2 in edits1(e1) if e2 in NWORDS)

def known(words): return set(w for w in words if w in NWORDS)

def correct(word):
candidates = known([word]) or known(edits1(word)) or known_edits2(word) or [word]
return max(candidates, key=NWORDS.get)
The code defines the function correct, which takes a word as input and returns a likely correction of that word. For example:

>>> correct('speling')
'spelling'
>>> correct('korrecter')
'corrector'

Asked In C++ Pawan Pandey (11 years ago)
Unsolved
Is this Puzzle helpful?   (1)   (0) Submit Your Solution Program
Keep an EYE (0)Interview Experience (261)
Solved Question (6040) UnSolved Question (153944)
Pages: 11
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

"Full form of MATHS M-mind A-aim T-trick H-habits S-serious "

Ajay Singh

"Mathematics is just a game of greatest fun so every one should play it "

Jass

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com