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 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 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`. 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 | 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