Codechef Probem : NITIKA

Problem : Link: ( https://www.codechef.com/JULY17/problems/NITIKA ) Nitika was once reading a history book and wanted to analyze it. So she asked her brother to create a list of names of the various famous personalities in the book. Her brother gave Nitika the list. Nitika was furious when she saw the list. The names of the people were not properly formatted. She doesn’t like this and would like to properly format it.
Read more →

HackerRank Problem : Min Max Sum ( easy )

Problem : ( Link : Click here to visit this HackerRank problem page.) Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers. Input Format A single line of five space-separated integers. Constraints Each integer is in the inclusive range .
Read more →

HackerRank Problem : Reverse and capitalise first alphabet of each word.

* Problem : (Link : Click here to visit this problem on HackerRank. ) * Reverse the words in a string and capitalize the first letter of each reversed word, preserving the capitalization in the original stri. For eg: “Hello World” would be transformed to “OlleH DlroW”. Input : The first line of input would be the number of test cases followed by each string in a line. Output :
Read more →

My Github repository

Read more →

A Simple C program to convert DECIMAL to BINARY

A Simple C program to convert DECIMAL to BINARY 1#include<iostream> 2#include<stdio.h> 3using namespace std; 4int main() 5{ 6int n, arr[100] ; 7int i=0,j; 8cout<<“Enter the decimal number —>” ; 9cin>>n; 10// using while loop to store in arr[] 11while( (n/2) >=1) 12{ 13arr[i++]= (n%2); 14n=n/2; 15} 16if(n==3) 17{ 18arr[i++]=1; 19arr[i]=1; 20} 21else if(n==2) 22arr[i]=0; 23else if(n==1) 24arr[i]=1; 25 26cout<<endl ; 27for(j=i;j>=0;j–) 28cout<<arr[j]; 29 30return 0; 31} OUTPUT
Read more →

Make USB flash drive a bootable media via Command Prompt

Follow the following steps :- Step I : Open command prompt as administrator Step II: Type “diskpart” and hit enter Step III: Type “list disk” and then press enter. Step III: Check the disk number of you USB drive. ( in example it is 1 ) Step IV: Now, type “select disk 1” and then hit enter ( remember here 1 is the disk number) Step V: `Now type “clean” and hit enter.
Read more →

Bypass Windows User Login

Bypass Microsoft Windows User Login  Step I :Get any Linux Distribution live bootable disk (generally all Linux Distros comes with live boot option).  If you don’t have bootable disk download it from the respective website. Although Ubuntu is most popular Linux distribution. You can download Ubuntu from :http://www.ubuntu.com/download/desktop( select the latest version according to your cpu artitecture viz. 32 bit or 64 bit). After download, you can burn it DVD or a USB flash drive).
Read more →