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
c
java
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
vbnet
r
css
bootstrap
win32
groovy
winapi
sql
mysql
jquery
pascal-string
lua
winforms
kotlin-string
bash
swift-string
c-string
cpp-string
go-string
php-string
c#-string
cobol
java-string
vbnet-string
rust-string
python-string
scala-string
cpp-vector
f#
opengl
javascript-string
pascal-array
typescript-string
swift-array
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
sdl3
c-matrix
cpp-array
c#-list
vbnet-list
pascal-matrix
go-slice
c#-array
java-array
nodejs-express
character-code-ascii-unicode
swift-matrix
c#-matrix
angularjs
split-string-into-array-by-delimiter
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
compare-two-dates
extract-all-digits-string
get-first-digit-after-decimal-point-float
remove-stop-words-string
check-whether-floating-point-variable-is-integer
longest-substring-without-repeating-characters
calculate-volume-cube
divide-given-amount-into-bills-coins
Disclosure:
My content contains affiliate links.
Recent questions tagged RUBY
43,227
questions
56,129
answers
573
users
Recent questions tagged RUBY
1
answer
11
views
How to compare two dates in Ruby
asked
15 hours
ago
by
avibootz
ruby
ruby-compare-two-dates
compare-two-dates
2
answers
13
views
How to get the country name from the 2-letter country code (alpha-2) in Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-country-name-from-country-code
country-name-from-country-code
1
answer
15
views
How to extract the last N digits from a number in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-extract-last-n-digits-number
extract-last-n-digits-number
1
answer
15
views
How to extract all floating-point numbers from a string of words in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-extract-all-floating-point-numbers-string
extract-all-floating-point-numbers-string
1
answer
22
views
How to extract all digits from a string in Ruby
asked
3 days
ago
by
avibootz
ruby
ruby-extract-all-digits-string
extract-all-digits-string
1
answer
46
views
How to get the first digit after the decimal point of a float number in Ruby
asked
5 days
ago
by
avibootz
ruby
ruby-get-first-digit-after-decimal-point-float
get-first-digit-after-decimal-point-float
1
answer
33
views
How to get the first digit of a float number in Ruby
asked
5 days
ago
by
avibootz
ruby
ruby-get-first-digit-float
get-first-digit-float
1
answer
37
views
How to compute the factorial of a number greater than 20 in Ruby
asked
6 days
ago
by
avibootz
ruby
ruby-compute-factorial-of-number-greater-20
compute-factorial-of-number-greater-20
1
answer
35
views
How to select N unique random values that appear exactly once in an existing array with Ruby
asked
Sep 13
by
avibootz
ruby
ruby-n-unique-random-values-appear-once-in-array
n-unique-random-values-appear-once-in-array
1
answer
43
views
How to select N unique random indices from an existing array in Ruby
asked
Sep 12
by
avibootz
ruby
ruby-select-n-unique-random-indices-array
select-n-unique-random-indices-array
1
answer
43
views
How to find the longest shared prefix among all words in a string with Ruby
asked
Sep 12
by
avibootz
ruby
ruby-longest-shared-prefix-words-string
longest-shared-prefix-words-string
1
answer
47
views
How to find the longest common prefix of all the words in a string with Ruby
asked
Sep 11
by
avibootz
ruby
ruby-string
ruby-longest-common-prefix-all-words-string
longest-common-prefix-all-words-string
1
answer
51
views
How to find common words in two strings with Ruby
asked
Sep 11
by
avibootz
ruby
ruby-string
ruby-find-common-words-two-strings
find-common-words-two-strings
1
answer
54
views
How to remove stop words from a string in Ruby
asked
Sep 11
by
avibootz
ruby
ruby-string
ruby-remove-stop-words-string
remove-stop-words-string
1
answer
48
views
How to check whether a floating-point variable is an integer (has no fractional part) in Ruby
asked
Sep 10
by
avibootz
ruby
ruby-check-whether-floating-point-variable-is-integer
check-whether-floating-point-variable-is-integer
1
answer
58
views
How to compare two float arrays using a tolerance in Ruby
asked
Sep 8
by
avibootz
ruby
ruby-compare-two-float-arrays-tolerance
compare-two-float-arrays-tolerance
1
answer
60
views
How to split text without spaces into a list of words using dictionary-based segmentation in Ruby
asked
Sep 8
by
avibootz
ruby
ruby-split-text-without-spaces-into-words-dictionary
split-text-without-spaces-into-words-dictionary
1
answer
59
views
How to convert numbers from 0 to 999,999,999,999,999 (up to 999 trillion) into English words in Ruby
asked
Sep 6
by
avibootz
ruby
ruby-convert-numbers-0-999999999999999-english-words
convert-numbers-0-999999999999999-english-words
1
answer
60
views
How to parse a table into a binary tree in Ruby
asked
Sep 5
by
avibootz
ruby
ruby-parse-table-into-binary-tree
parse-table-into-binary-tree
1
answer
46
views
How to declare, initialize, and print a medium complexity, varied, feature‑rich data structure in Ruby
asked
Sep 3
by
avibootz
ruby
ruby-declare-initialize-print-medium-complexity-data-structure
declare-initialize-print-medium-complexity-data-structure
1
answer
53
views
How to sort an array of classes that contain nested classes using custom comparison logic in Ruby
asked
Sep 2
by
avibootz
ruby
ruby-sort-array-of-classes-contain-nested-classes
sort-array-of-classes-contain-nested-classes
1
answer
58
views
How to find the N most frequent non‑stopwords in a text in Ruby
asked
Aug 31
by
avibootz
ruby
ruby-n-most-frequent-non-stopwords-text
n-most-frequent-non-stopwords-text
1
answer
51
views
How to find the starting index of all occurrences of a word in a string in Ruby
asked
Aug 30
by
avibootz
ruby
ruby-find-starting-index-all-occurrences-word-string
find-starting-index-all-occurrences-word-string
2
answers
75
views
How to split a string into words in Ruby
asked
Aug 29
by
avibootz
ruby
ruby-split-string
ruby-split-string-into-words
split-string-into-words
1
answer
76
views
How to split a string into an array by delimiter and remove empty elements in Ruby
asked
Aug 28
by
avibootz
ruby
ruby-split-string-into-array-by-delimiter
split-string-into-array-by-delimiter
1
answer
56
views
How to convert any digital storage unit into all others (B, KB, MB, GB, TB, PB, EB, ZB, YB) in Ruby
asked
Aug 28
by
avibootz
ruby
ruby-convert-any-digital-storage-unit-into-all-others
convert-any-digital-storage-unit-into-all-others
1
answer
50
views
How to write the Tic-Tac-Toe game in Ruby
asked
Aug 27
by
avibootz
ruby
ruby-tic-tac-toe-game
tic-tac-toe-game
1
answer
52
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 Ruby
asked
Aug 26
by
avibootz
ruby
ruby-7-boom-game
7-boom-game
1
answer
66
views
How to generate a random RGBA color and opacity in Ruby
asked
Aug 25
by
avibootz
ruby
ruby-generate-random-rgba-color-opacity
generate-random-rgba-color-opacity
1
answer
64
views
How to generate a series of unique HEX colors in Ruby
asked
Aug 24
by
avibootz
ruby
ruby-generate-series-unique-hex-colors
generate-series-unique-hex-colors
1
answer
66
views
How to generate a random color in RGB format with Ruby
asked
Aug 23
by
avibootz
ruby
ruby-generate-random-color-rgb-format
generate-random-color-rgb-format
1
answer
120
views
How to generate a random color in HEX format with Ruby
asked
Aug 23
by
avibootz
ruby
ruby-generate-random-color-hex-format
generate-random-color-hex-format
2
answers
142
views
How to print the numbers 0 to 31 by changing 1 bit each time in Ruby
asked
Aug 22
by
avibootz
ruby
ruby-print-0-31-changing-1-bit-each-time
print-0-31-changing-1-bit-each-time
1
answer
74
views
How to generate N random 1s in a zero-based matrix with Ruby
asked
Aug 21
by
avibootz
ruby
ruby-generate-n-random-1-zero-based-matrix
generate-n-random-1-zero-based-matrix
1
answer
66
views
How to check if two strings are anagrams (same letters, different words) in Ruby
asked
Aug 20
by
avibootz
ruby
ruby-check-two-strings-anagrams
check-two-strings-anagrams
1
answer
66
views
How to find all sequences of consecutive prime numbers whose sum equals N in Ruby
asked
Aug 20
by
avibootz
ruby
ruby-all-sequences-consecutive-prime-numbers-sum-equal-n
all-sequences-consecutive-prime-numbers-sum-equal-n
1
answer
72
views
How to print the first 100 prime numbers in Ruby
asked
Aug 18
by
avibootz
ruby
ruby-print-first-100-prime-numbers
print-first-100-prime-numbers
1
answer
72
views
How to initialize an array with a range of numbers in Ruby
asked
Aug 18
by
avibootz
ruby
ruby-initialize-array-range-of-numbers
initialize-array-range-of-numbers
1
answer
84
views
How to do modulo multiplication for 64‑bit values without using BigInteger in Ruby
asked
Aug 16
by
avibootz
ruby
ruby-modulo-multiplication-64-bit-values-without-biginteger
modulo-multiplication-64-bit-values-without-biginteger
1
answer
90
views
How to remove every N‑th element from an array in Ruby
asked
Aug 16
by
avibootz
ruby
ruby-remove-every-n-element-array
remove-every-n-element-array
1
answer
82
views
How to use # frozen_string_literal: true in Ruby
asked
Aug 15
by
avibootz
ruby
ruby-use-frozen-string-literal-true
use-frozen-string-literal-true
1
answer
79
views
How to build sparse array in Ruby
asked
Aug 15
by
avibootz
ruby
ruby-build-sparse-array
build-sparse-array
1
answer
83
views
How to get the first N digits of a BigInteger in Ruby
asked
Aug 14
by
avibootz
ruby
ruby-get-first-n-digits-biginteger
get-first-n-digits-biginteger
1
answer
87
views
How to find the median among three given numbers in Ruby
asked
Aug 13
by
avibootz
ruby
ruby-median-among-three-given-numbers
median-among-three-given-numbers
1
answer
97
views
How to extract and sort numbers from a string containing numbers and text in Ruby
asked
Aug 13
by
avibootz
ruby
ruby-extract-sort-numbers-string
extract-sort-numbers-string
1
answer
96
views
How to convert radians to degrees and degrees to radians in Ruby
asked
Aug 12
by
avibootz
ruby
ruby-convert-radians-degrees-degrees-radians
convert-radians-degrees-degrees-radians
2
answers
118
views
How to find the longest substring without repeating characters in Ruby
asked
Aug 11
by
avibootz
ruby
ruby-substring
ruby-longest-substring-without-repeating-characters
longest-substring-without-repeating-characters
1
answer
106
views
How to find the Kth smallest number in an unsorted array with Ruby
asked
Aug 10
by
avibootz
ruby
ruby-find-k-smallest-number-unsorted-array
find-k-smallest-number-unsorted-array
1
answer
91
views
How to find the N smallest values in a 2D array in Ruby
asked
Aug 10
by
avibootz
ruby
ruby-find-n-smallest-values-2d-array
find-n-smallest-values-2d-array
1
answer
87
views
How to sort an array with a single loop in Ruby
asked
Aug 8
by
avibootz
ruby
ruby-sort-array-with-single-loop
sort-array-with-single-loop
Page:
1
2
3
4
5
6
...
9
next »
...