-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray_permutation.py
More file actions
49 lines (42 loc) · 1.46 KB
/
array_permutation.py
File metadata and controls
49 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
# coding: utf-8
# # Welcome to Jupyter!
# In[ ]:
a = input()
b = input()
a1 = sorted(a)
b1 = sorted(b)
for i in range(len(a1)):
if a1[i] != b1[i]:
print (False)
# This repo contains an introduction to [Jupyter](https://jupyter.org) and [IPython](https://ipython.org).
#
# Outline of some basics:
#
# * [Notebook Basics](../examples/Notebook/Notebook%20Basics.ipynb)
# * [IPython - beyond plain python](../examples/IPython%20Kernel/Beyond%20Plain%20Python.ipynb)
# * [Markdown Cells](../examples/Notebook/Working%20With%20Markdown%20Cells.ipynb)
# * [Rich Display System](../examples/IPython%20Kernel/Rich%20Output.ipynb)
# * [Custom Display logic](../examples/IPython%20Kernel/Custom%20Display%20Logic.ipynb)
# * [Running a Secure Public Notebook Server](../examples/Notebook/Running%20the%20Notebook%20Server.ipynb#Securing-the-notebook-server)
# * [How Jupyter works](../examples/Notebook/Multiple%20Languages%2C%20Frontends.ipynb) to run code in different languages.
# You can also get this tutorial and run it on your laptop:
#
# git clone https://github.com/ipython/ipython-in-depth
#
# Install IPython and Jupyter:
#
# with [conda](https://www.anaconda.com/download):
#
# conda install ipython jupyter
#
# with pip:
#
# # first, always upgrade pip!
# pip install --upgrade pip
# pip install --upgrade ipython jupyter
#
# Start the notebook in the tutorial directory:
#
# cd ipython-in-depth
# jupyter notebook