rachitrocks2k
BAN USER- 0of 2 votes
AnswersImplement a bus reservation system asume bus' seats are as follows
- rachitrocks2k in India for Bing
HHHHHH
HHHHHH
HHHHHH
. . . . . . . .
you can assume 10 rows in bus.
Now if user enters 4 as required seat no then the prefrence order would be
4
3,1
2,2
2,1,1
1,1,1,1
and the function should return the seat number.| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Data Structures
@charsyam :: Can you please explain how can we find the number by traversing the sorted array.
- rachitrocks2k November 08, 2012
Repirenedpisano, Blockchain Developer at ABC TECH SUPPORT
Hello, I am Irene and I live in Pittsburgh, USA. I am working as A production worker and my duty ...
Repbettylfoster, University dean at Littler's
Hi , I am Betty from the USA , working as Dien in Littler's University for the last three years. Previously ...
Repfrancesdpayne, AT&T Customer service email at Cavium Networks
I am Frances Payne from Jacksonville, United States. I am working as a Rental manager in Magna Gases company. I ...
RepI am Ricky from the USA. I am 29 year old. I am doing a job. I am doing a ...
Replarrymmapp, Android test engineer at Software AG
Hello, I am name and I live in a city, USA. I am a professional's Podiatric doctor. I am ...
Repfloydmsnyder, Theoretical mathematician at STM Auto Parts
As a Theoretical Mathematician,I’m little more interested in the theory involved with mathematics. In my free time , I ...
RepI am Susan From Wasilla USA. and my strong interest in yoga and reading historical books. I have a large ...
Repaliciajdew, Integration Software Engineer at Absolute Softech Ltd
I have a strong base in marketing and I believe in focused strategies that bring brands to their relevant audiences ...
Reppathfisher, Animator at Rack N Sack
I am Pat working in Rack N Sack where I use sequential images to produce the illusion of movement and ...
one point
- rachitrocks2k November 13, 2013You can get all 1's for n only if n = (2 pow k) -1. correct me if i am wrong.If it is true shouldn't we only try for ((2 pow k )-1)%a ==0.