From b95b7b32d112603333e4fe4492f26ed0f2fdae35 Mon Sep 17 00:00:00 2001 From: Dharmaksha <68665143+Dharmaksha@users.noreply.github.com> Date: Tue, 27 Oct 2020 22:40:26 +0530 Subject: [PATCH 1/5] Update README.md --- C++/README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/C++/README.md b/C++/README.md index 4ffbcb51..c1e467b8 100644 --- a/C++/README.md +++ b/C++/README.md @@ -9,10 +9,7 @@ | Program-07 | Program to print Pascal' triangle | | Program-08 | Program to reverse a string | | Program-09 | Program to check if two numbers are equal without using arithmetic operators or comparison operators. - | Program-10 | Program to Reverse words in a given string - | Program-10 | Program to find the missing number in a Sorted Array. | Program-15 | Program to find modular exponentiation. - -| Program-19| To check whether a number is in palindrome or not \ No newline at end of file +| Program-19| To check whether a number is in palindrome or not From 78daa671b461cf6c36836da65caafd2d93fe5b07 Mon Sep 17 00:00:00 2001 From: Dharmaksha <68665143+Dharmaksha@users.noreply.github.com> Date: Wed, 28 Oct 2020 00:40:57 +0530 Subject: [PATCH 2/5] Update README.md --- Python/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Python/README.md b/Python/README.md index 313454a0..b17427a9 100644 --- a/Python/README.md +++ b/Python/README.md @@ -28,8 +28,7 @@ | Program-24 | Program to convert binary number to decimal | | Program-25 | Program of a car game which shows if the car has started or stopped | | Program-26 | Program of a guessing game in which u guess the secret number with a guessing limit of 3 attempts. | -| Program-27 | Program which tells you the of downpayment of the house is 10% or 20% -depending if the owner has a good credit or not.The price of the house is to be entered in the output | +| Program-27 | Program which tells you the of downpayment of the house is 10% or 20% depending if the owner has a good credit or not.The price of the house is to be entered in the output | | Program-28 | Program to find out the GCD of any 2 given numbers | | Program-29 | Program which will display the fibonacci series | | Program-30 | Program to make simple calculator | From 69902da6d6d866df4720ad38e69559dbc4f7d996 Mon Sep 17 00:00:00 2001 From: Dharmaksha <68665143+Dharmaksha@users.noreply.github.com> Date: Wed, 28 Oct 2020 00:44:14 +0530 Subject: [PATCH 3/5] Create README.md --- Dart/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Dart/README.md diff --git a/Dart/README.md b/Dart/README.md new file mode 100644 index 00000000..a89a4896 --- /dev/null +++ b/Dart/README.md @@ -0,0 +1 @@ +# Dart From 2e85a94fcadb1c43a76fb58fc180a336e8ab05a9 Mon Sep 17 00:00:00 2001 From: Dharmaksha <68665143+Dharmaksha@users.noreply.github.com> Date: Wed, 28 Oct 2020 00:46:26 +0530 Subject: [PATCH 4/5] Create README.md --- kotlin/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 kotlin/README.md diff --git a/kotlin/README.md b/kotlin/README.md new file mode 100644 index 00000000..f9d85e6f --- /dev/null +++ b/kotlin/README.md @@ -0,0 +1 @@ +# Kotlin From 04f773f0543844beb22bc56cee2c62b5f8524c15 Mon Sep 17 00:00:00 2001 From: fauwara Date: Thu, 29 Oct 2020 22:00:10 +0400 Subject: [PATCH 5/5] Created program-11 --- Javascript/program-11/program.js | 14 ++++++++++++++ Javascript/program-11/readme.md | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Javascript/program-11/program.js create mode 100644 Javascript/program-11/readme.md diff --git a/Javascript/program-11/program.js b/Javascript/program-11/program.js new file mode 100644 index 00000000..e828ece4 --- /dev/null +++ b/Javascript/program-11/program.js @@ -0,0 +1,14 @@ +const isIsogram = str => { + str = str.toLowerCase(); + for (let i=0 ; str.length > i ; i++){ + for(let j=1+i ; str.length > j ; j++ ){ + if ( str[i]==str[j] ){ + return false; + } + } + } + return true; +} + +//isIsogram('isogram'); // true +//isIsogram('isIsogram'); // false \ No newline at end of file diff --git a/Javascript/program-11/readme.md b/Javascript/program-11/readme.md new file mode 100644 index 00000000..f60a6716 --- /dev/null +++ b/Javascript/program-11/readme.md @@ -0,0 +1,11 @@ +--- +title: isIsogram +tags: string,begginer +--- + +Checks if a given word is an isogram or not. An isogram is a word that has no repeating letters. + +- Convert string to `lowercase`/`uppercase` since capital letters do not equate to small letter. +- Iterate the string using 2 for loops using the iterators `i` and `j`. Where `j` starts of 1 more than `i`. +- If at any point `str[i]` is equal to `str[j]` return `false`. +- If the above does not happen till you reach the end of the string return `true`.