Ruby Coding Problem: Given an array of strictly the characters ‘R’, ‘G’, and ‘B’, segregate the values of the array so that all the Rs come first, the Gs come second, and the Bs come last. You can only swap …

Coding Problem: Given an array of numbers of length N, find both the minimum and maximum using less than 2 * (N - 2) comparisons. Find min and max in an optimized way. For example, if the array consists of 5 elements we …

Javascript is the second most popular programming language in 2020. Data visualization is famous among python coders since it has several libraries like matplotlib, seaborn, and plotly. Hey, JS practitioners, you can do data visualization with Javascript, too, with these libraries. I …

Coding Problem: Given an array of integers, write a function to determine whether the array could become non-decreasing by modifying at most 1 element. For example, given the array [10, 5, 7], you should return true, since we can modify the …

Due to the corona outbreak, we all are in self-isolation. Almost all companies made their product free for people to utilise in this lockdown period. In this list, many ed-tech companies made their courses free for students to learn from …

Perfect number problem: A number is considered as a perfect number if the sum of its digits up to exactly 10. ie. 19, 28, 37 are perfect numbers. Given an integer n, write a function to return n-th perfect number.For …

Expiry Date Problem: You came across the expiry code medical tablet strip which represents the expiry date of the medicine. Given the expiry code as a string, you’ve to find the expiry date of the medicine. ie., EXP220613 means 13 …

Given a string, determine whether any permutation of it is a palindrome. For example, carrace should return true, since it can be rearranged to form racecar, which is a palindrome. daily should return false, since there’s no rearrangement that can form a palindrome. Also, see: Mi10 5G …

Javascript without loops ? Javascript is one of the most popular and multipurpose languages that has been growing in all major tech areas. JS has been highly evolved in each version which helps developers to code lesser and increase productivity. …

Implement the function fib(n), which returns the nth number in the Fibonacci sequence, using only O(1) space in ruby. Fibonacci is the sequence of numbers 0,1,2,3,5,8,13….. The new number is found by adding up the two numbers before it. Our task is to …