Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint
Cover Image
Cover Image
Drag to reposition
Contributed Answers

Python program to count occurrences of an element in a tuple

Answered on 26th Sep, 2018, 0 Views

Here given a user input tuple, our task is to count occurrences of a given element in a tuple. , , , ,

Python program to find the number occurring odd number of times using Lambda expression and reduce function

Answered on 26th Sep, 2018, 0 Views

Here given a user input positive integer array. Our task is to find out the number occurring odd number of times. , , , ,

Python program to check if all the values in a list that are greater than a given value

Answered on 26th Sep, 2018, 0 Views

List is given and checking value is given, display all the values in a list that are greater than the given value. , , , ,

Python program using the map function to find a row with the maximum number of 1's

Answered on 26th Sep, 2018, 0 Views

2D array is given and the elements of the arrays are 0 and 1. All rows are sorted. We have to find row with maximum number of 1's. Here we use map ().The map function is the simplest one among Python built-ins used for functional programming. These tools apply functions to sequences and other iterables. , , , ,

Python Program to remove items from the set

Answered on 26th Sep, 2018, 0 Views

We are very much familiar with the term set because in the point of mathematics, we know about set. Set in Python is a data structure equivalent to sets in mathematics. It may consist of various elements; the order of elements in a set is undefined. You can add and delete elements of a set, you can iterate the elements of the set, and you can perform standard operations on sets (union, inte.....

Python program to check whether a given string is Heterogram or not

Answered on 26th Sep, 2018, 0 Views

Here one string is given then our task is to check weather a given string is Heterogram or not. The meaning of heterogram checking is that a word, phrase, or sentence in which no letter of the alphabet occurs more than once. A heterogram may be distinguished from a pangram which uses all of the letters of the alphabet. String is abc def ghi , String is abc bcd dfh , , , ,

Python program to sort a list according to the second element in the sublist.

Answered on 26th Sep, 2018, 0 Views

List is given, our task is to sort a list according to the second element in the sublist. Here we apply simple bubble sort. , , , ,

How are Java objects stored in memory?

Answered on 30th Aug, 2018, 0 Views

Java memory model is divided between Thread Stacks (One for each thread) and a heap area. It is a thread specific memory area and contains local variables, methods call information etc. JVM stacks could be of fixed size or variable size. If computation in a thread exceeds its stack size limit then JVM throws StackOverflowError and exits. It contains all the objects created during applic.....

HashSet in Java

Answered on 14th Aug, 2018, 0 Views

HashSet extends AbstractSet and implements the Set interface. It creates a collection that uses a hash table for storage. A hash table stores information by using a mechanism called hashing. In hashing, the informational content of a key is used to determine a unique value, called its hash code. The hash code is then used as the index at which the data associated with the key is stored. T.....

loader
Advertisements
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.