Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/coding-challenges.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@ Create a function that receives an integers array and returns the number that ap
| (1,1,2) | 2 |
| (2,2,1) | 1 |

}
fun num(list:List<Int>): Int{
var num=0
var dis=0
for(i in 0..list.size){
num=list[i]
for(j in i+1..list.size){
if(list[i]==list[j]){}


}

}
## 2nd Challenge
Create a function that receives a string then it converts uppercase letters into lowercase and vice versa. The function then should print the converted value.

Expand All @@ -20,7 +32,14 @@ Create a function that receives a string then it converts uppercase letters into
| Hello World | hELLO wORLD |
| My name is Ali | mY NAME IS aLI |
| sHroog | ShROOG |

fun convert(name:String):String{
for(i in 0..name.length){
if(name[i].isUpperCase())
{name[i].toLowerCase()
}
name[i].toUpperCase()
}
return name}}

## 3rd Challenge
Create a function that receives an array of items & arrays and returns one flattened array with all items exluding null values.
Expand Down Expand Up @@ -50,4 +69,8 @@ Create a function that receives a string that contains combination of parenthese
| {[}]) | false |


fun parentheses(parentheses:String):Boolean{
for(i in 0..parentheses.size){
if(parentheses)
}