Posts

Some Amazing Internet Tricks You Wish You Knew Earlier | Tech Tips

Image
Below is a list of one of the best Internet Tips and Tricks that will make you life a whole lot easier. Here you go... Lost your Android phone? You can Ring your phone even if it is in silent mode, erase Data, or lock your smartphone remotely using Android Device Manager .             Just Search Find My Phone in Google to Locate your Phone instantly.                 Do you Know you can play mp3, movie directly on Your Browser, Just drag files in Browser Window   You can create a PDF with Cool Index page and contents from a Wikipedia article.   Feeling Bore Then Play Pac-Man On Google Doodle.                Search For the Word Pac-Man On Google                    You Can also try the follo...

What is a Raspberry Pi? | Tech Tips

Image
The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. It’s capable of doing everything you’d expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games. What’s more, the Raspberry Pi  has the ability to interact with the outside world, and has been used in a wide array of digital maker projects, from music machines and parent detectors to weather stations and tweeting birdhouses with infra-red cameras. We want to see the Raspberry Pi being used by kids all over the world to learn to program and understand how computers work. The Raspberry Pi was created with the goal of education in mind. This ultra-tiny computer was designed to be small ...

What is a Hybrid Mobile App? | Tech tips

Image
Hybrid mobile apps are like any other apps you’ll find on your phone. They install on your device. You can find them in app stores. With them, you can play games, engage your friends through social media, take photos, track your health, and much more. Like the websites on the internet, hybrid mobile apps are built with a combination of web technologies like HTML, CSS, and JavaScript. The key difference is that hybrid apps are hosted inside a native application that utilizes a mobile platform’s WebView . (You can think of the WebView as a chromeless browser window that’s typically configured to run fullscreen.) This enables them to access device capabilities such as the accelerometer, camera, contacts, and more. These are capabilities that are often restricted to access from inside mobile browsers. Furthermore, hybrid mobile apps can include native UI elements in situations where necessary. It can be very difficult to tell how a mobile application is built. Hybrid mobi...

Top Text Editors For Programming | Tech Tips

Image
As a developer, One  always have to find the best tools for development purposes. Specially a Text Editor. Text editor plays the primary role in any developer workspace. The project code is written, debugged and executed with the help of the text editor. It’s like a garage to build tools/products for the world. As a developer you need a text-editor that fulfill all your requirements. Now, comes the real problem. Choosing the perfect text editor for your work can be a challenging task. It requires skillful experimentation, personal preference, and final judgment. Before you jump into a single text editor. So, lets get started with the list of Top text Editors. Top Text Editors For Developers:  Sublime Text Editor Sublime Text editor is one best text editor in the market. It is a proprietary software with a focus on features. Not only it is a great alternative to a powerful IDE, but it is also lightweight and does the job with great ef...

Selection sort | Sorting algorithm

Image
The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning.  The algorithm maintains two subarrays in a given array.   1) The subarray which is already sorted.  2) Remaining subarray which is unsorted.   In every iteration of selection sort, the minimum element (considering ascending order) from the unsorted subarray is picked and moved to the sorted subarray.                  Source code:   Download the code here: Selection_sort.cpp #include<iostream> using namespace std; //function for performing selection sort void selection_sort(int a[],int n) {     int i,j,k,temp,min_indx;           for(i=0;i<n-1;i++)     {         min_indx=i; ...

Write a program to print all permutations of a given string

Image
A permutation, also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation. Below are the permutations of string ABC. ABC ACB BAC BCA CBA CAB. Source Code:  Download the code  : Permutation of string #include <iostream> #include <string.h> using namespace std; int count=0; void swap(char *x, char *y) {     char temp;     temp = *x;     *x = *y;     *y = temp; } void permute(char *a, int l, int r) {    int i;    if (l == r)    {     count++;     cout<<count<<": "<<a<<"\n";    }    else    {        for (i = l; i <= r; i++)        {          ...

N Queen Problem ( Backtracking)

Image
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example, following is a solution for 8 Queen problem.   Naive Algorithm:  Generate all possible configurations of queens on board and print a configuration that satisfies the given constraints. Backtracking Algorithm: The idea is to place queens one by one in different columns, starting from the leftmost column. When we place a queen in a column, we check for clashes with already placed queens. In the current column, if we find a row for which there is no clash, we mark this row and column as part of the solution. If we do not find such a row due to clashes then we move to previous column and find other possible position for the previously placed queen. 1) Start in the leftmost column 2) If all queens are placed i.e. fill_count = no of queens Print the board 3) Try all rows in the current column.  Do followin...