What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-09 00:08:08
Dfs program in c++
############### #The Algorithm (In English): # 1) Pick any node. # 2) If it is unvisited, mark it as visited and recur on all its # adjacent nodes. # 3) Repeat until all the nodes are visited, or the node to be # searched is found. # The grap... Add solution -
Python 2021-11-07 17:21:13
long int in python
/******************************************************************************************** As a side note, in Python 3, there is only one type “int” for all type of integers. In Python 2.7. there are two separate types “int” (wh... Add solution -
Python 2021-11-06 11:01:20
how to make a url shortener in python
#How to make a URL Shortener in Python ####You need to install " pip install pyshorteners " in the terminal / powershell ## Code: import pyshorteners link = input("Enter link : ") shortener = pyshorteners.Shortener() x=shortener.ti... Add solution -
Other 2021-11-05 13:49:12
AttributeError: 'NoneType' object has no attribute
As you are in python3 , use dict.items() instead of dict.iteritems() iteritems() was removed in python3, so you can't use this method anymore. Take a look at Python 3.0 Wiki Built-in Changes section, where it is stated: Removed dict.iteritems(), dict.i... Add solution -
Python 2021-11-05 11:19:10
how to find closest distance for given points
# A divide and conquer program in Python3 # to find the smallest distance from a # given set of points. import math import copy # A class to represent a Point in 2D plane class Point(): def __init__(self, x, y): self.x = x self.y = y # A u... Add solution