Posts

Showing posts from July, 2012

C program to sort a given array using Quick Sort algorithm

#include<stdio.h> #define swap(a,b,c,temp1) {temp1=a[b];a[b]=a[c];a[c]=temp1;} //Sorting an array with QUICKSORT void sort(int *arr,int p,int q); int partition(int *arr,int p,int q); int main() {     int arr[]={3,7,4,2,6,0,5};     int i;          sort(arr,0,6);          for(i=0;i<7;i++)     printf("%d",arr[i]);          return 0; } void sort(int *arr,int p,int q) {     int temp;     if(p<q)     {         temp=partition(arr,p,q);         sort(arr,p,temp-1);         sort(arr,temp+1,q);     } } int partition(int *arr,int p, int q) {     int pivot,i,b=p-1,temp;     pivot=arr[q];     for(i=p;i<=q-1;i++)     {         if(arr[i]<=pivot)         {             b=b+1;             swap(arr,i,b,temp);         }     }     swap(arr,b+1,q,temp);     return b+1; }

Google Adds New 34-Button Scientific Calculator to Search Results

Image
Hard as we might try to avoid it, we occasionally still have to do math. Unless you’re a high school student with a graphing calculator, that usually means firing up a simple calculator program on your computer, which wastes valuable time you could be spending on the Internet. Luckily Google has just released a new scientific calculator. Go ahead and enter an equation into Google Search. Try 2+2. Now, instead of simply coming up with the answer, Google presents you with a full, 34-button scientific calculator. Sine, cosines, tangents; all of that good stuff is in there. Want to multiply something by Pi? Don’t worry buddy, Google’s got you covered. But wait, that’s not all! You can also access the calculator with Desktop Voice Search. Just click the little microphone icon in the search bar, speak your equation out loud and wait a split second for your answer. A pared-down version of the calculator also appears during mobile searches. There’s one thing that physical calculat

Facebook pays interns more than Google

Image
The world's most popular social networking site  Facebook pays  its interns nearly $74,000 (Rs 40.7 lakh) a year in a bid to attract young talent , according to a report.  According to a report by Business Insider, Facebook  pays comparatively more than most other tech companies, so that young talented people that may not choose a more established company like  Google .  Software engineering interns , for example, earn $74,700 (Rs 41.1 lakh) a year, reports a newspaper.  The report also revealed that other staff members at Facebook get paid pretty well, with at least 10 roles commanding  six figure salaries  . According to the report,  senior software engineers  are commanding the most coin at Facebook, getting a salary of $132,503 (Rs 72.9 lakh).  Software engineers, also called  coders , are the most valuable workers because they turn the ideas fired at them by  Mark Zuckerberg  and his executive team into reality.

Yahoo got new CEO : Google's vice president Marissa Mayer

Image
One of Tecca's 10 most influential women in tech just got a lot more so. Marissa Mayer, employee number 20 at Google and a key player in many of its products, has left the company to assume a new role as president and CEO of Yahoo. Mayer, who this past April was nominated to the board of Wal-Mart, was approached last month about the position. Up until her departure, she had been in charge of Google Maps and location-based services, holding a seat on the company's elite operating committee along with its co-founders, Larry Page and Sergey Brin. She replaces former Yahoo head Scott Thompson, who resigned in May following a stir involving the validity of his academic credentials. Thompson was only with the company for four months, and after his departure Yahoo reportedly courted the likes of Hulu boss Jason Kilar. Mayer's name was never mentioned as a potential candidate at the time. In her new position, Mayer ranks among a handful of female CEOs of major American t

Indian HC removes 200 SMS per day limit

Image
The Delhi High Court today set aside the cap of 200 SMSes per day sent through a mobile phone SIM for personal communications but upheld the curb on unwanted commercial SMSes saying they infringed the "equally" important right to privacy of "unwilling recipients." "We are, therefore, of the opinion that the impugned provision (of Telecom Regulatory Authority of India (Trai) insofar as it covers non-UCCs (Unrestricted Unsolicited Commercial Communications) SMS in the present form as it exists, infringes the freedom of speech of the citizens. "And the conditions imposed upon the freedom of speech is not reasonable which would be protected under Article 19 (2) (which deals with reasonable restrictions of freedom of speech) of the Constitution," a bench of Acting Chief Justice A K Sikri and Justice Rajiv Sahai Endlaw said. The bench, however, made a distinction for unsolicited commercial calls and said that the restriction imposed by the Trai

Interesting to read: The State of the Web in India

Image
Since this 2006 article on RWW about the Top Web Apps in India, a lot has happened in the Indian web industry. Some new entrants have made a mark for themselves and some existing ones have strengthened their market positions, while still others got lost somewhere in between. We take a homegrown look at the changes in India during the past five years. First, some quick stats. According to a report, Internet in India 2011, published by the Internet and Mobile Association of India (IAMAI) as well as a short video published by Nielsen: There are currently 112 million Internet users (88 million urban dwellers, and 24 million more from rural villages) in India, out of which 90 million are active users; 240 million Indians accessed the Internet on their mobile phones last year; 20 million Indians look for job openings on the Internet every month; 54 million Indians check online reviews for the products they wish to purchase, out of which 15 million do so only on social media site

Digg is sold, after years of decline

Image
New York tech incubator Betaworks acquired the website Digg on Thursday in a deal that included the remaining brand assets, a humble close to what was once a celebrated online property that heralded the social media era. Launched in 2004 by then 27-year old Kevin Rose, Digg rose to prominence as an aggregator of online content, becoming at one point one of the more highly-trafficked stops on the Internet. The site let users vote up - or "Digg" - links, an early precursor to how Facebook ( FB.O ) and Twitter help spread "viral" content today. The deal was worth just $500,000, the Wall Street Journal reported. The sale came after the majority of Digg's engineering staff left in May for Social Code, a subsidiary of The Washington Post Co ( WPO.N ). "Over the last few months, we've considered many options of where Digg could go, and frankly many of them could not live up to the reason Digg was invented in the first place -- to discover the best