document.write('\x3Cscript type="text/javascript" src="' + ('https:' == document.location.protocol ? 'https://' : 'http://') + 'feed.mikle.com/js/rssmikle.js">\x3C/script>');(function() {var params = {rssmikle_url: "gcal://www.techcrunch.com|http://techcrunch.com|http://www.thehackernews.com",rssmikle_frame_width: "300",rssmikle_frame_height: "400",frame_height_by_article: "3",rssmikle_target: "_blank",rssmikle_font: "Arial, Helvetica, sans-serif",rssmikle_font_size: "12",rssmikle_border: "off",responsive: "off",rssmikle_css_url: "",text_align:...

Remove duplicates in a given elements?

Q) Write a program to remove duplicates in a given elements? Sample Input:- Enter elements separated by space : 2 3 4 2 2 2 2 2 2 2 1 1 2 3 1 2 Output:- 1 2 3 4 Python code:- l=[] print "Enter elements separated by space : " l=map(int,raw_input().split()) l=list(set(l)) for i in range(len(l)):       print l[i], ...

Count frequency of characters in string

Q) Write a program to count frequency of characters in given string? Sample Input:-- Enter a string :  python programming Output:- a 1 g 2 h 1 i 1 m 2 n 2 o 2 p 2 r 2 t 1 y 1 python code:- s=raw_input("Enter a stirng : ") al='abcdefghijklmnopqrstuvwxyz' au='ABCDEFGHIJKLMNOPQRSTUVWXYZ' l=[0]*26 m=[0]*26 for i in range(26):     l[i]=s.count(al[i])     m[i]=s.count(au[i]) for i in range(26):     if l[i]!=0:         print al[i],l[i]     if m[i]!=0:    ...

Reverse a String simple program in python

Q) Write a simple python program to reverse a given String? Python Code:- s=raw_input("Enter a stirng : ")print s[::-1] Output:-...

Java Arithmetic Challange

Problem Statement Welcome to Day 2! Practice how to do arithmetic with code in this challenge! If given the meal price, tip percentage, and tax percentage, we can find the final price of a meal. In many of these challenges, you will need to read input from stdin (standard input) and write your output in stdout (standard output). Different programming languages provide different ways to handle input and output. In Java, one way to take input from stdin is to use the Scanner class and read in from System.in. In other words, Java's Scanner...