Posts

Showing posts from February, 2017

Moto G 4th edition

Image
                       The Motorola Moto G4 Plus is powered by 1.5GHz octa-core Qualcomm Snapdragon 617 processor and it comes with 2GB of RAM. The phone packs 16GB of internal storage that can be expanded up to 128GB via a microSD card. As far as the cameras are concerned, the Motorola Moto G4 Plus packs a 16-megapixel primary camera on the rear and a 5-megapixel front shooter for selfies.                         The Motorola Moto G4 Plus runs Android 6.0.1 and is powered by a 3000mAh non removable battery. It measures 153.00 x 76.60 x 7.90 (height x width x thickness) and weigh 155.00 grams. The Motorola Moto G4 Plus is a dual SIM (GSM and GSM) smartphone that accepts Micro-SIM and Micro-SIM. Connectivity options include Wi-Fi, GPS, Bluetooth, USB OTG, FM, 3G ...

Fibonacci Modified

I just solved a problem in HackerRank in Dynamic programming,so  that i want to share with you all. Problem Statement Direct Link: Click here I solved in python 3 and I hope it will be helpful to you. Program Code: t1, t2, n = map(int, input().split()) #get the input values while n>2: temp = t2 t2 = t1 + t2**2#logic n -= 1 t1 = temp print(t2) Output: 0 1 10 84266613096281243382112

HackerRank-Beautiful Days at the Movies

I just solved this problem in python,so that i want to share with you. Problem: Lily likes to play games with integers and their reversals . For some integer , we define to be the reversal of all digits in . For example, , , and . Logan wants to go to the movies with Lily on some day satisfying , but he knows she only goes to the movies on days she considers to be beautiful . Lily considers a day to be beautiful if the absolute value of the difference between and is evenly divisible by . Given , , and , count and print the number of beautiful days when Logan and Lily can go to the movies. Input Format A single line of three space-separated integers describing the respective values of , , and . Constraints Output Format Print the number of beautiful days in the inclusive range between and . Sample Input 20 23 6   Sample Output 2   Explanation Logan wants to go to the movies on days , , , and . We perfor...