Longest Palindromic Substring

let str = "abbccbbaxxyyxx"

let book = {};
book.title = 'Little Women';
console.log(book);
// prints { title: 'Little Women' }

AWS Management Console

Cloudbeam’s home page

About Cloudbeam



What is open-source software?


What Does it Do?


cubed_values = []
for num in range(3, 10):
cube = num**3
cubed_values.append(cube)
print(cubed_values)
# [27, 64, 125, 216, 343, 512, 729]

# ruby
def factors(n)
(1..n).select { |int| n % int == 0 }
end
// javascript
function factors(n) {
return Array(n).fill().map((_, idx) => idx + 1)
.filter(int => n % int === 0);
}

Linear Search

arr = [1, 2, 3, 4, 5, 6, 7, 8, 11]def linear_search(arr, val)
arr.each do |n|
return true if n == val
end
false
end
linear_search(arr, 3) # returns true
linear_search(arr, 9) # returns false

Elizabeth

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store