Skip to main content

Posts

Showing posts from 2019

ADD TWO NUMBER :WITHOUT USING '+' OPERATOR.

C program Magic 4x4 Square Grid

Fibonacci Generator Function

Difference between Sum of odd & even index numbers

Prime Number Check

Addition of Two numbers without '+' operator

Buy Maximum Stocks

Output Format Print the maximum number of stock that a customer can buy. Sample Input 0 3 10 7 19 45 Sample Output 0 4

The Slippery Pole

The Slippery Pole Baba is partying hard and drinking hard drinks as his friend Vipul has won a big Coding Contest. It has been several hours and now he is totally drunk. He is out of his senses and has started to climb a pole. The rest of the people are trying to get him down but his dazed mind is unable to react and he is therefore not listening to anyone. The pole is long and slippery. The drinks were super hard and the hangover is going to be for days. Vipul is enjoying, laughing and observed that Baba slips down y metres in night and climbs x metres in day time. Now, he wants to know after how many days will Baba be at the top of the slippery pole, if the length of the pole is N metres. Since he is out too, you have to find the answer for him. Input Format The first line of input consist of number of test cases, T Next T lines consists of three space separated integers x, y and N each. Constraints 1<= T <=100 1<= N <=10000000 1...

Skipping Stones

Bank account

https://www.hackerrank.com/contests/gs-codesprint/challenges/bank-accounts

C PROGRAM TO CHECK TRIPLETS

       

ALGORITHM TO FIND TRIPLETS