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
cpp-string
c-string
swift-string
bash
go-string
php-string
c#-string
java-string
vbnet-string
cobol
python-string
rust-string
scala-string
javascript-string
cpp-vector
f#
opengl
typescript-string
pascal-array
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
remove-characters-first-string-from-second-string
generate-8-digit-random-number
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
Disclosure:
My content contains affiliate links.
Recent questions tagged ruby
43,401
questions
56,365
answers
573
users
Recent questions tagged ruby
2
answers
11
views
How to remove characters present in first string from the second string in Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-string
ruby-remove-characters-first-string-from-second-string
remove-characters-first-string-from-second-string
1
answer
8
views
How to calculate annually compound interest in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-compound-interest
compound-interest
1
answer
8
views
How to convert a string to an array of characters in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-string
ruby-string-to-array-characters
string-to-array-characters
1
answer
25
views
How to generate an 8 digits random number in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-generate-8-digit-random-number
generate-8-digit-random-number
2
answers
16
views
How do you find the position of the most significant bit (MSB) of an unsigned integer in Ruby
asked
4 days
ago
by
avibootz
ruby
ruby-position-msb-integer
position-msb-integer
1
answer
23
views
How to use XOR to swap two characters in a string in Ruby
asked
5 days
ago
by
avibootz
ruby
ruby-xor-swap-two-characters-string
xor-swap-two-characters-string
1
answer
37
views
How to find the intersection of two arrays (values that exist in both arrays) in Ruby
asked
6 days
ago
by
avibootz
ruby
ruby-intersection-two-arrays
intersection-two-arrays
1
answer
44
views
How to check whether the letters of a word exist in a string (order doesn't matter) in Ruby
asked
Sep 27
by
avibootz
ruby
ruby-letters-of-word-exist-in-string-order-doesnt-matter
letters-of-word-exist-in-string-order-doesnt-matter
2
answers
66
views
How to convert days into human-readable weeks and days in Ruby
asked
Sep 26
by
avibootz
ruby
ruby-convert-days-human-readable-weeks-days
convert-days-human-readable-weeks-days
1
answer
42
views
How to find repeated patterns of numbers in the rows of a matrix with Ruby
asked
Sep 25
by
avibootz
ruby
ruby-repeated-patterns-numbers-rows-matrix
repeated-patterns-numbers-rows-matrix
1
answer
34
views
How to find repeated rows of a matrix in Ruby
asked
Sep 25
by
avibootz
ruby
ruby-find-repeated-rows-matrix
find-repeated-rows-matrix
1
answer
47
views
How to convert multiple date formats to YYYY-MM-DD in Ruby
asked
Sep 25
by
avibootz
ruby
ruby-convert-convert-date-formats-to-yyyy-mm-dd
convert-convert-date-formats-to-yyyy-mm-dd
1
answer
44
views
How to print a number with a thousand separator as spaces in Ruby
asked
Sep 22
by
avibootz
ruby
ruby-number-thousand-separator-spaces
number-thousand-separator-spaces
1
answer
49
views
How to count the numbers with even number of digits in an array with Ruby
asked
Sep 21
by
avibootz
ruby
ruby-count-numbers-even-number-of-digits-array
count-numbers-even-number-of-digits-array
1
answer
52
views
How to compare two dates in Ruby
asked
Sep 20
by
avibootz
ruby
ruby-compare-two-dates
compare-two-dates
2
answers
74
views
How to get the country name from the 2-letter country code (alpha-2) in Ruby
asked
Sep 19
by
avibootz
ruby
ruby-country-name-from-country-code
country-name-from-country-code
1
answer
67
views
How to extract the last N digits from a number in Ruby
asked
Sep 18
by
avibootz
ruby
ruby-extract-last-n-digits-number
extract-last-n-digits-number
1
answer
70
views
How to extract all floating-point numbers from a string of words in Ruby
asked
Sep 18
by
avibootz
ruby
ruby-extract-all-floating-point-numbers-string
extract-all-floating-point-numbers-string
1
answer
65
views
How to extract all digits from a string in Ruby
asked
Sep 17
by
avibootz
ruby
ruby-extract-all-digits-string
extract-all-digits-string
1
answer
80
views
How to get the first digit after the decimal point of a float number in Ruby
asked
Sep 15
by
avibootz
ruby
ruby-get-first-digit-after-decimal-point-float
get-first-digit-after-decimal-point-float
1
answer
70
views
How to get the first digit of a float number in Ruby
asked
Sep 15
by
avibootz
ruby
ruby-get-first-digit-float
get-first-digit-float
1
answer
63
views
How to compute the factorial of a number greater than 20 in Ruby
asked
Sep 14
by
avibootz
ruby
ruby-compute-factorial-of-number-greater-20
compute-factorial-of-number-greater-20
1
answer
67
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
65
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
59
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
69
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
68
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
71
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
70
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
80
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
85
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
84
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
81
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
71
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
77
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
83
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
71
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
100
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
93
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
74
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
70
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
70
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
86
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
81
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
85
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
137
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
163
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
89
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
83
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
86
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
Page:
1
2
3
4
5
6
...
9
next »
...