Remember
Register
Search With
Seek4Info.com
Programming & Software Q&A | CollectiveSolver
Questions
Tags
Users
Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.
Contact: aviboots(AT)netvision.net.il
Most popular tags
python
java
c
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
r
css
bootstrap
win32
groovy
winapi
sql
mysql
vbnet
jquery
pascal-string
lua
winforms
kotlin-string
bash
c-string
swift-string
cpp-string
go-string
c#-string
php-string
java-string
vbnet-string
cobol
rust-string
python-string
cpp-vector
f#
opengl
scala-string
javascript-string
pascal-array
swift-array
typescript-string
c-array
php-array
javascript-array
rust-vector
typescript-array
python-list
reactjs
scala-array
c-windows
nodejs-string
go-array
kotlin-array
nodejs-array
sdl2
cpp-matrix
cpp-array
c#-list
vbnet-list
c-matrix
pascal-matrix
go-slice
c#-array
java-array
nodejs-express
character-code-ascii-unicode
swift-matrix
c#-matrix
sdl3
angularjs
transpose-matrix
binary-search-algorithm
dot-product-two-arrays
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
measure-function-execution-time
sort-words-string
exabyte-constant
petabyte-constant
terabyte-constant
math-functions-constants
string-to-title-case
create-infinite-loop
rust-matrix
Disclosure:
My content contains affiliate links.
Recent questions tagged scala
41,465
questions
54,012
answers
573
users
Recent questions tagged scala
1
answer
52
views
How to print text diagonally from left to right in Scala
asked
Apr 6
by
avibootz
scala
scala-print-text-diagonally-from-left-to-right
print-text-diagonally-from-left-to-right
1
answer
47
views
How to find the k biggest values from an array in Scala
asked
Apr 6
by
avibootz
scala
scala-k-biggest-values-array
k-biggest-values-array
1
answer
41
views
How to find the maximum value we can achieve by picking k elements from an array in Scala
asked
Apr 6
by
avibootz
scala
scala-maximum-value-k-elements-array
maximum-value-k-elements-array
1
answer
44
views
How to reverse the bits of a number in Scala
asked
Apr 4
by
avibootz
scala
scala-reverse-bits-number
reverse-bits-number
1
answer
41
views
How to check whether only 2 bits in a number at a specific position are on (edge‑case‑safe) with Scala
asked
Apr 3
by
avibootz
scala
scala-check-2-number-bits-specific-position-on-edge-case-safe
check-2-number-bits-specific-position-on-edge-case-safe
1
answer
50
views
How to toggle a bit at specific position in Scala
asked
Apr 3
by
avibootz
scala
scala-toggle-bit-specific-position
toggle-bit-specific-position
1
answer
42
views
How to write 4 different functions that check if a number is a power of 2 in Scala
asked
Apr 2
by
avibootz
scala
scala-different-functions-check-number-power-of-2
different-functions-check-number-power-of-2
1
answer
44
views
How to write 6 different functions that accept 5 or 7 and return the other number, without using if,switch in Scala
asked
Apr 1
by
avibootz
scala
scala-different-functions-accept-5-7-return-other-number
different-functions-accept-5-7-return-other-number
1
answer
57
views
How to copy bits from M into N (numbers) between bit positions i and j (edge‑case‑safe) in Scala
asked
Mar 30
by
avibootz
scala
scala-bits
scala-copy-bits-m-into-n-between-positions-edge-case-safe
copy-bits-m-into-n-between-positions-edge-case-safe
1
answer
53
views
How to get the word before the last word from a string (edge‑case‑safe) in Scala
asked
Mar 29
by
avibootz
scala
scala-string
scala-get-word-before-last-string-edge-case-safe
get-word-before-last-string-edge-case-safe
1
answer
51
views
How to find the median among three given numbers in Scala
asked
Mar 26
by
avibootz
scala
scala-median-among-three-given-numbers
median-among-three-given-numbers
1
answer
47
views
How to find the smallest number greater than a given number, using the same digits in Scala
asked
Mar 25
by
avibootz
scala
scala-smallest-number-greater-given-number-same-digits
smallest-number-greater-given-number-same-digits
1
answer
49
views
How to produce a sequential count in octal, starting at zero in Scala
asked
Mar 24
by
avibootz
scala
scala-sequential-count-octal
sequential-count-octal
1
answer
38
views
How to remove item by key from a collection of key-value pairs (associative array) in Scala
asked
Mar 23
by
avibootz
scala
scala-remove-item-by-key-collection-key-value-pairs
remove-item-by-key-collection-key-value-pairs
5
answers
78
views
How to iterate over a collection of key-value pairs (associative array) in Scala
asked
Mar 23
by
avibootz
scala
scala-iterate-collection-key-value-pairsiterate-collection-key-value-pairs
1
answer
43
views
How to write custom callback function to an array (apply a function to each element) in Scala
asked
Mar 21
by
avibootz
scala
scala-custom-callback-function-to-array
custom-callback-function-to-array
3
answers
57
views
How to apply a callback to an array (apply a function to each element) in Scala
asked
Mar 21
by
avibootz
scala
scala-callback-to-array
callback-to-array
1
answer
51
views
How to calculate the Ethiopian multiplication in Scala
asked
Mar 17
by
avibootz
scala
scala-ethiopian-multiplication
ethiopian-multiplication
1
answer
44
views
How to calculate the percentage change between two values in Scala
asked
Mar 16
by
avibootz
scala
scala-percentage-change-between-two-values
percentage-change-between-two-values
1
answer
43
views
How to write the 7 Boom game. If a number is divided by 7 or includes the digit 7, the user writes Boom in Scala
asked
Mar 15
by
avibootz
scala
scala-7-boom-game
7-boom-game
1
answer
48
views
How to find the longest shared prefix among all words in a string with Scala
asked
Mar 14
by
avibootz
scala
scala-longest-shared-prefix-words-string
longest-shared-prefix-words-string
2
answers
46
views
How to group words in a string by the first N letters in Scala
asked
Mar 13
by
avibootz
scala
scala-group-words-string-first-n-letter
group-words-string-first-n-letter
1
answer
48
views
How to find the longest common prefix of all the words in a string with Scala
asked
Mar 12
by
avibootz
scala
scala-longest-common-prefix-all-words-string
longest-common-prefix-all-words-string
1
answer
51
views
How to split a string on multiple multi‑character delimiters (and keep them) in Scala
asked
Mar 10
by
avibootz
scala
scala-split-string-multiple-multi-character-delimiters
split-string-multiple-multi-character-delimiters
1
answer
47
views
How to split a string on multiple single‑character delimiters (and keep them) in Scala
asked
Mar 9
by
avibootz
scala
scala-split-string-multiple-single-character-delimiters
split-string-multiple-single-character-delimiters
1
answer
48
views
How to find missing alphabet characters from a string in Scala
asked
Mar 8
by
avibootz
scala
scala-missing-alphabet-characters-string
missing-alphabet-characters-string
1
answer
42
views
How to remove all adjacent duplicate characters from a string until no more can be removed in Scala
asked
Mar 7
by
avibootz
scala
scala-remove-adjacent-duplicate-characters-string
remove-adjacent-duplicate-characters-string
1
answer
42
views
How to reverse only the alphabetic characters in a string, keeping other characters in place with Scala
asked
Mar 6
by
avibootz
scala
scala-reverse-only-alphabetic-characters
reverse-only-alphabetic-characters
1
answer
41
views
How to calculate the remainder in Scala
asked
Mar 5
by
avibootz
scala
scala-calculate-remainder
calculate-remainder
1
answer
40
views
How to calculate the surface area of cuboid in Scala
asked
Mar 3
by
avibootz
scala
scala-cuboid
scala-calculate-surface-area-cuboid
calculate-surface-area-cuboid
2
answers
52
views
How to find the longest word in a string with Scala
asked
Mar 3
by
avibootz
scala
scala-string
scala-longest-word-in-string
longest-word-in-string
1
answer
49
views
How to check if a string contains only 0 and 1 and is divisible by 7 in Scala
asked
Mar 1
by
avibootz
scala
scala-string-contains-only-0-and-1-is-divisible-by-7
string-contains-only-0-and-1-is-divisible-by-7
1
answer
46
views
How to check if every digit in a number appears only once in Scala
asked
Feb 27
by
avibootz
scala
scala-check-digits-number-appears-once
check-digits-number-appears-once
1
answer
49
views
How to check if a number is pandigital in Scala
asked
Feb 25
by
avibootz
scala
scala-check-number-pandigitaln
check-number-pandigitaln
1
answer
40
views
How to find all happy numbers in a specific range with Scala
asked
Feb 25
by
avibootz
scala
scala-find-happy-numbers-in-specific-range
find-happy-numbers-in-specific-range
1
answer
53
views
How to check if a number is a happy number in Scala
asked
Feb 24
by
avibootz
scala
scala-check-if-number-is-happy-number
check-if-number-is-happy-number
2
answers
63
views
How to remove newlines from a string Scala
asked
Feb 22
by
avibootz
scala
scala-remove-newlines-from-string
remove-newlines-from-string
1
answer
48
views
How to convert a number to any base in Scala
asked
Feb 21
by
avibootz
scala
scala-convert-number-to-any-base
convert-number-to-any-base
1
answer
57
views
How to count uppercase, lowercase, special characters, and numeric values using RegEx in Scala
asked
Feb 20
by
avibootz
scala
scala-count-uppercase-lowercase-special-characters-numeric-regex
count-uppercase-lowercase-special-characters-numeric-regex
1
answer
47
views
How to simulate rolling two dice (game cubes) with values 1–6 in Scala
asked
Feb 18
by
avibootz
scala
scala-simulate-rolling-two-dice-values-1-6
simulate-rolling-two-dice-values-1-6
1
answer
58
views
How to remove the last n occurrences of a substring in a string in Scala
asked
Feb 16
by
avibootz
scala
scala-remove-last-n-occurrences-substring-string
remove-last-n-occurrences-substring-string
1
answer
56
views
How to replace a random word in a string with a random word from a list of words using Scala
asked
Feb 13
by
avibootz
scala
scala-replace-random-word-in-string-with-random-word-from-list
replace-random-word-in-string-with-random-word-from-list
1
answer
51
views
How to find the length of the shortest word in a string with Scala
asked
Feb 12
by
avibootz
scala
scala-length-shortest-word-in-string
length-shortest-word-in-string
1
answer
49
views
How to find the shortest identical consecutive subarray in an array with Scala
asked
Feb 9
by
avibootz
scala
scala-shortest-identical-consecutive-subarray
shortest-identical-consecutive-subarray
1
answer
58
views
How to move the n word to the end of a string in Scala
asked
Feb 6
by
avibootz
scala
scala-move-n-word-to-end-of-string
move-n-word-to-end-of-string
1
answer
53
views
How to move the first word to the end of a string in Scala
asked
Feb 5
by
avibootz
scala
scala-move-first-word-to-end-of-string
move-first-word-to-end-of-string
1
answer
53
views
How to move a word to the end of a string in Scala
asked
Feb 5
by
avibootz
scala
scala-move-word-to-end-of-string
move-word-to-end-of-string
1
answer
56
views
How to multiply every N consecutive items in a list with Scala
asked
Feb 2
by
avibootz
scala
scala-multiply-every-n-of-consecutive-items-in-list
multiply-every-n-of-consecutive-items-in-list
1
answer
57
views
How to create a list of dates between a start and end date in Scala
asked
Jan 31
by
avibootz
scala
scala-create-list-of-dates
create-list-of-dates
1
answer
58
views
How to find the number occurring an odd number of times in a sequence with Scala
asked
Jan 30
by
avibootz
scala
scala-find-number-occurring-odd-number-of-times-in-sequence
find-number-occurring-odd-number-of-times-in-sequence
Page:
« prev
1
2
3
4
5
6
7
...
19
next »
...