File tree 8 files changed +112
-0
lines changed
8 files changed +112
-0
lines changed Original file line number Diff line number Diff line change 2
2
Created on Mar 18, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
7
21
def both_ends (string ):
Original file line number Diff line number Diff line change 2
2
Created on Mar 18, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
7
21
def fib (order ):
Original file line number Diff line number Diff line change 2
2
Created on Mar 18, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
7
21
def fix_start (string ):
Original file line number Diff line number Diff line change 2
2
Created on Mar 18, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
7
21
def front_x (strings , char ):
Original file line number Diff line number Diff line change 2
2
Created on Mar 18, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
7
21
def match_ends (string_array ):
Original file line number Diff line number Diff line change 2
2
Created on Mar 18, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
7
21
def prime (number ):
Original file line number Diff line number Diff line change 2
2
Created on Mar 18, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
def sort_last (array ):
7
21
return sorted (array , key = lambda x : x [- 1 ])
Original file line number Diff line number Diff line change 2
2
Created on Mar 19, 2014
3
3
4
4
@author: Dario Bonino <dario.bonino@polito.it>
5
+
6
+ Copyright (c) 2014 Dario Bonino
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License
5
19
'''
6
20
7
21
import string
You can’t perform that action at this time.
0 commit comments