
Tech Revolvers
![Monk and Rotation [Hacker earth]](https://additionalknowledge.com/wp-content/uploads/2017/12/hackerearth-logo.jpg?w=997)
Monk and Rotation [Hacker earth] PROBLEM: Monk loves to preform different operations on arrays, and so being the principal of Hackerearth School, he assigned a task to his new student Mishki. Mishki will be provided with an integer array AA of size NN and an integer KK , where she needs to rotate the array in the right direction by K… Read more

USING SCANNER FOR INPUT IN JAVA Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double etc. and strings. In Java, we input with the help of the Scanner class. Java has a number of predefined classes which we can use. import java.util.Scanner; // This will import just the Scanner class… Read more

Sum of digits in c or c++ without pointers SO, the main logic behind this is=: b = a%10; // we took the remainder after dividing by 10 thats the last digit sum = sum+ (b*c); // adding last digit to sum a = a/10; //to remove last digit from a c= c/10; //to… Read more
![Append in rails[AJAX][info]](https://additionalknowledge.com/wp-content/uploads/2017/06/images.png?w=225)
Append in rails THESE both line ; the line 3 and 9 meant same. You can use either of them. These lines are used when you want to append html pages using ajax. Read more

What is Bitcoin? The founder of Bitcoin is Satoshi Nakamoto, an anonymous online alias for a forum poster. The founder remains unknown, and no one truly knows who the actual founder is. Bitcoin is the first global, decentralized currency that allows you to send money from one person to another without involving a third party… Read more

The hidden tricks of Macbook Pro Taking screenshots of any size Simply press Shift, Command and 3 at the same time; the screenshot will then be stored on your desktop. For a portion of the screen, the shortcut is Shift-Command-4 with the same output directory. To only capture an individual window, you can press Shift-Command-4,… Read more