Pages

Showing posts with label Coding Solutions. Show all posts
Showing posts with label Coding Solutions. Show all posts

Thursday, 27 October 2016

Food Truck Problem by IEEEXtreme

Hello All..Today I am here with my solution for a Coding contest problem.

Problem begins now...

Madhu has a food-truck called "The Yummy Goods" that goes to a different business Hotspot everyday at lunch! Madhu wants to perform location-based advertising to folks in offices near her halt. To do this she uses the GPS location as a longitude and a latitude at the Stop and decides on radius (r) value. She wants to broadcast advertisement SMSes, to customers within this radius, advertising her food-truck.

She needs your help to generate the list of Phone numbers of such folks. She has access to big file of telecom data, which among other details, contains the phone number, longitude, and latitude of active cell-phone users in the city at that moment.


Thursday, 4 August 2016

Logic Pyramid Solution

Hey all..

I am here today to explain you about how to solve the Logic Pyramid problem as below..

Yeah if the user gives input as n then we have to build a n sized pyramid like this with the specified series..

  00006
 00028 00066
00120 00190 00276
First Logic of series

let 6 and 28 be known
so
Eg
Case 1#

28 - 6 = 22
22+ 16=38
38+28 = 66

Case 2#

66  -  28 =  38
38 + 16 = 54
54 + 66 = 120

Now Code for this in C Language