File tree Expand file tree Collapse file tree 2 files changed +83
-0
lines changed Expand file tree Collapse file tree 2 files changed +83
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "cells" : [
3
+ {
4
+ "attachments" : {},
5
+ "cell_type" : " markdown" ,
6
+ "metadata" : {},
7
+ "source" : [
8
+ " # Practice Code: 0006\n " ,
9
+ " \n " ,
10
+ " **Given a line, the words in it are indicated with a space. Print words in descending order of their length.**\n " ,
11
+ " \n " ,
12
+ " **Input:** My favourite programming language is Python.<br>\n " ,
13
+ " **Output:** programming favourite language Python My is.\n " ,
14
+ " \n " ,
15
+ " Use an optimal algorithm to solve this problem.\n " ,
16
+ " \n " ,
17
+ " #python #practiceCode #samples #interviewQuestions #collections #dict #algorithm"
18
+ ]
19
+ }
20
+ ],
21
+ "metadata" : {
22
+ "kernelspec" : {
23
+ "display_name" : " Python 3" ,
24
+ "language" : " python" ,
25
+ "name" : " python3"
26
+ },
27
+ "language_info" : {
28
+ "codemirror_mode" : {
29
+ "name" : " ipython" ,
30
+ "version" : 3
31
+ },
32
+ "file_extension" : " .py" ,
33
+ "mimetype" : " text/x-python" ,
34
+ "name" : " python" ,
35
+ "nbconvert_exporter" : " python" ,
36
+ "pygments_lexer" : " ipython3" ,
37
+ "version" : " 3.7.0"
38
+ }
39
+ },
40
+ "nbformat" : 4 ,
41
+ "nbformat_minor" : 2
42
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "cells" : [
3
+ {
4
+ "cell_type" : " markdown" ,
5
+ "metadata" : {},
6
+ "source" : [
7
+ " # Practice Code: 0007\n " ,
8
+ " \n " ,
9
+ " **Write a function, which counts each character in a string and prints the output with the character count.**\n " ,
10
+ " \n " ,
11
+ " **Input :** \" xxXXXXXAAABBcCDDDEEEEccc\" <br>\n " ,
12
+ " **Output:** \" x2X5A3B2c1C1D3E4c3\"\n " ,
13
+ " \n " ,
14
+ " Try solving it using the an optimal algorithm and then solve it using functions or packages of Python.\n " ,
15
+ " \n " ,
16
+ " #python #practiceCode #samples #interviewQuestions #collections #algorithm"
17
+ ]
18
+ }
19
+ ],
20
+ "metadata" : {
21
+ "kernelspec" : {
22
+ "display_name" : " Python 3" ,
23
+ "language" : " python" ,
24
+ "name" : " python3"
25
+ },
26
+ "language_info" : {
27
+ "codemirror_mode" : {
28
+ "name" : " ipython" ,
29
+ "version" : 3
30
+ },
31
+ "file_extension" : " .py" ,
32
+ "mimetype" : " text/x-python" ,
33
+ "name" : " python" ,
34
+ "nbconvert_exporter" : " python" ,
35
+ "pygments_lexer" : " ipython3" ,
36
+ "version" : " 3.7.0"
37
+ }
38
+ },
39
+ "nbformat" : 4 ,
40
+ "nbformat_minor" : 2
41
+ }
You can’t perform that action at this time.
0 commit comments