As someone who have just planned to enter into programming world, we quite often get confused which programming language to learn or start with because of the availability of so many different programming languages.
Given integers and , find the smallest integer , such that there exists a triangle of height , base , having an area of at least . Input Format In the first and only line, there are two space-separated integers and…
At the annual meeting of Board of Directors of Acme Inc, every one starts shaking hands with everyone else in the room. Given the fact that any two persons shake hand exactly once, Can you tell the total count of…
Jim is off to a party and is searching for a matching pair of socks. His drawer is filled with socks, each pair of a different color. In its worst case scenario, how many socks (x) should Jim remove from his drawer…
There are few different ways to find the sum of array of numbers in Javascript Using for loop The easiest and fastest option. Using foreach loop Using map function Using reduce method Syntax Example You can also use…
We define a word character to be any of the following: An English alphabetic letter (i.e., a-z and A-Z). A decimal digit (i.e., 0-9). An underscore (i.e., _, which corresponds to ASCII value ). We define a word to be a…
We are trying to hack together a smart programming IDE. Help us build a feature which auto-detects the programming language, given the source code. There are only three languages which we are interested in "auto-detecting": Java, C and Python.
If you are struggling trying to figure out how to copy and paste in putty terminal when connected to centos / ubuntu server, then you have come to the right place. It's quite easy to copy paste in PuTTY Do the following…
Q. Write a program that does the following define a function to generate 1000 integer number randomly between 0 and 100, and save them in a file call it 'data.dat'. define a function to read the file contents and count…
Normally a python program will exit automatically when the program ends. But some situations may arise when we would want to exit the program on meeting a condition or maybe we want to exit our program after a certain period of time.