Sort A Dictionary By Key In Python

By Svarnim Agarwal

In this tutorial, we will be going over 3 ways to sort a dictionary by key in python. Dictionary is a very useful data structure in python. But, it is unordered. Sometimes we might.... Read More

List in Python and operations

By Chelamalla Meghana

List is the collection of data items which are either of similar data type or dissimilar data types. A list is similar to array but in array we have only similar data items. In a l.... Read More

Printing diamond pattern in Python

By Aditya Pandey

This tutorial will help you learn about how to make or print a diamond pattern in Python. Printing of pattern is an easy a funloving part of coding be it in any language. We will l.... Read More

Finding the greatest digit in a number using python

By Aditya Pandey

This tutorial will help us find the greatest digit in a number in Python. We are going to learn to code this concept in two ways. Using Basic Mathematical Concept. ( Math module o.... Read More

Rounding off a number to nearest multiple of 10

By Akash Tripathi

Today we will see how to round off a number to the nearest multiple of 10 in Java. Example: 13 will be rounded off to 10. 27 will be rounded off to 30. 55 will be rounded off to 50.... Read More

How to find the Angle between the hour hand and minute hand in C++

By Manisha Rathore

In this tutorial, we will learn to get or find the angle between the hour hand and minute hand in C++. Also, we say this problem as analog clock angle problem where we have to find.... Read More

Block swap algorithm for rotation of the array

By Manisha Rathore

In this tutorial, we will learn about the block-swap algorithm for rotation of the array in C++. Also, we will have an array and we have to rotate the array by s elements. For Exam.... Read More

Segment tree in Java

By Yanamandra Valli

In this tutorial, we will see how a segment tree is implemented in Java and also on how to build a segment tree, update a value in the segment tree and query in a segment tree in J.... Read More

Related Posts