What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-06 18:03:13
program code for counting the similarwrod in the sentences
public static int count(String word) { if (word == null || word.isEmpty()) { return 0; } int wordCount = 0; boolean isWord = false; int endOfLine = word.length() - 1; char[] characters = word.toCharArray(); for (int i... Add solution -
TypeScript 2021-11-05 07:35:12
union value typescript
// Union Type: function reacts depending on x type (array of string OR string) function welcomePeople(x: string[] | string) { if (Array.isArray(x)) { console.log("Hello, " + x.join(" and ")); // 'x' is 'string[]' } else { ... Add solution -
TypeScript 2021-11-05 06:00:09
Create a program that takes in an even sized String and prints out the first half concatenated with second half string separated by a single space, and the first half must be turned all capital letters whereas the second part turn to all lowercase
Create a program that takes in an even sized String and prints out the first half concatenated with second half string separated by a single space, and the first half must be turned all capital letters whereas the second part turn to all lowercase Add solution -
Python 2021-11-05 02:51:18
16 digit number generate on python
# Python3 code to demonstrate # generating random strings # using random.choices() import string import random # initializing size of string N = 7 # using random.choices() # generating random strings res... Add solution -
Python 2021-10-29 23:49:13
python sort comparator
# Basic syntax: your_list.sort() # Example usage: your_list = [42, 17, 23, 111] your_list.sort() print(your_list) --> [17, 23, 42, 111] # If you have a list of numbers that are of type string, you can do the # following to sort them numerically witho... Add solution
Best helpers
Ranking is empty