Please Login in order to post a comment
proc_square_number = proc {|proc_sum_array| proc_sum_array **2 }
proc_sum_array = proc {|my_array| my_array.sum} my_array = gets.split().map(&:to_i)
def square_of_sum (my_array, proc_square, proc_sum) sum = proc_sum.call(my_array) proc_square.call(sum) end proc_square_number = proc { |num| num * num } proc_sum_array = proc { |my_array| my_array.sum } my_array = gets.split().map(&:to_i) puts square_of_sum(my_array, proc_square_number, proc_sum_array)
I am facing same issue and want to integrate my invasioned wordpress site with it.
proc_square_number = proc { |n| n**2 } proc_sum_array = proc { |n| n.sum }
Here is ruby procs problem solution - https://www.gyangav.com/2022/10/hackerrank-ruby-procs-problem-solution.html
Seems like cookies are disabled on this browser, please enable them to open this website
proc_square_number = proc {|proc_sum_array| proc_sum_array **2 }
proc_sum_array = proc {|my_array| my_array.sum} my_array = gets.split().map(&:to_i)
I am facing same issue and want to integrate my invasioned wordpress site with it.
Here is ruby procs problem solution - https://www.gyangav.com/2022/10/hackerrank-ruby-procs-problem-solution.html