Problem Closed. This question is off-topic. It is not currently accepting answers. Questions containing broken code or asking for advice […]
Tag: scala
Updating MySQL with shuffled numbers between 1 and 50
Problem I need to assign a number to each userId. I think this is too much of a query for […]
Pascal triangle algorithm is good but fails
Problem I have created a function which returns the number that corresponds to the given row and column from the […]
Tail-Recursion to get a Map of word counts
Problem I want to read a file and store the number of occurrences of each word in a Map, using […]
Binary search in Scala
Problem Another exercise in Scala in which the goal is to find the target position as fast as possible. The […]
Kosaraju in Scala
Problem I started coding in Scala some time ago, and also learning some fundamental algorithms in CS. Here’s a terribly […]
A better OOP way for solution
Problem I am implementing a functionality in Scala to Copy files from one FileSystem to another FileSystem. And this is […]
Clean up tags from a text
Problem I need to generate random text for tests. I do that using alphanumeric characters and some special characters as […]
Find the combination of matches which are closest to each other
Problem Problem – Given three sorted arrays find combinations which are closest to each other. example – i/p – 3,8,18 […]
Taking some JSON data, converting the date format and calculating a user average
Problem I’m originally a Java developer taking a stab at some Scala development. One of the main reasons I’m posting […]