What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-16 12:48:02
get_products_of_all_ints_except_at_index
You have an array of integers, and for each index you want to find the product of every integer except the integer at that index.Write a function get_products_of_all_ints_except_at_index() that takes an array of integers and returns an array of the produc... Add solution -
Javascript 2021-09-03 10:58:01
How do you detect whether or not a word is a palindrome in javascript
function palindrome(str) { // Step 1. The first part is the same as earlier var re = /[^A-Za-z0-9]/g; // or var re = /[\W_]/g; str = str.toLowerCase().replace(re, ''); // Step 2. Create the FOR loop var len = str.length; // var len = "A man, a ... Add solution