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
pascal-array
f#
opengl
typescript-string
c-array
swift-array
php-array
javascript-array
rust-vector
typescript-array
python-list
scala-array
reactjs
c-windows
nodejs-string
go-array
nodejs-array
kotlin-array
sdl2
cpp-matrix
cpp-array
c-matrix
sdl3
c#-list
vbnet-list
java-array
pascal-matrix
c#-array
swift-matrix
c#-matrix
go-slice
nodejs-express
character-code-ascii-unicode
kotlin-matrix
typescript-matrix
vbnet-array
angularjs
split-string-into-array-by-delimiter
transpose-matrix
binary-search-algorithm
dot-product-two-arrays
generate-random-floating-point-numbers
all-permutations-combinations
rust-matrix
go-matrix
kotlin-list
swap-two-numbers-without-third
swap-two-numbers
mask-number-stars-except-last-4-digits
remove-characters-first-string-from-second-string
generate-8-digit-random-number
compare-two-dates
Disclosure:
My content contains affiliate links.
Recent questions tagged ruby
43,540
questions
56,739
answers
573
users
Recent questions tagged ruby
1
answer
7
views
How to get the Nth digit of a number in Ruby
asked
15 hours
ago
by
avibootz
ruby
ruby-get-n-digit-of-number
get-n-digit-of-number
1
answer
7
views
How to get the Nth digit of a number from the right in Ruby
asked
16 hours
ago
by
avibootz
ruby
ruby-get-n-digit-of-number-from-right
get-n-digit-of-number-from-right
3
answers
21
views
How to removes all extensions from a filename in Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-removes-all-extensions-filename
removes-all-extensions-filename
1
answer
13
views
How to extract only the filename in Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-extract-filename
extract-filename
1
answer
10
views
How to remove file extension in Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-remove-file-extension
remove-file-extension
1
answer
30
views
How to merge two sorted arrays without duplicates in Ruby
asked
3 days
ago
by
avibootz
ruby
ruby-array
ruby-merge-arrays-without-duplicates
merge-arrays-without-duplicates
2
answers
48
views
How to sum the corners of a matrix in Ruby
asked
3 days
ago
by
avibootz
ruby
ruby-matrix
ruby-sum-corners-matrix
sum-corners-matrix
1
answer
37
views
How to extract all the substrings between single quotation marks, including the quotes in Ruby
asked
3 days
ago
by
avibootz
ruby
ruby-substring
ruby-extract-all-substrings-single-quotation-marks
extract-all-substrings-single-quotation-marks
3
answers
51
views
How to extract all the substrings between single quotation marks in Ruby
asked
3 days
ago
by
avibootz
ruby
ruby-substring
ruby-extract-all-substrings-single-quotation-marks
extract-all-substrings-single-quotation-marks
3
answers
51
views
How to extract substring between single quotation marks in Ruby
asked
3 days
ago
by
avibootz
ruby
ruby-substring
ruby-extract-substring-single-quotation-marks
extract-substring-single-quotation-marks
3
answers
61
views
How to swap two numbers without using a third variable (temp) in Ruby
asked
5 days
ago
by
avibootz
ruby
ruby-swap-two-numbers
swap-two-numbers
ruby-swap-two-numbers-without-third
swap-two-numbers-without-third
1
answer
51
views
How to rearrange an array into a zig-zag pattern (a < b > c < d > e < f > g) in Ruby
asked
6 days
ago
by
avibootz
ruby
ruby-rearrange-array-zig-zag-pattern
rearrange-array-zig-zag-pattern
1
answer
47
views
How to compare floating-point values safely in Ruby
asked
Oct 7
by
avibootz
ruby
ruby-floating-point
ruby-compare-floating-point-safely
compare-floating-point-safely
3
answers
69
views
How to generate a range of floating-point numbers in Ruby
asked
Oct 7
by
avibootz
ruby
ruby-floating-point
ruby-generate-range-floating-point-numbers
generate-range-floating-point-numbers
3
answers
74
views
How to mask a number with stars except the last 4 digits in Ruby
asked
Oct 6
by
avibootz
ruby
ruby-mask-number-stars-except-last-4-digits
mask-number-stars-except-last-4-digits
2
answers
81
views
How to remove characters present in first string from the second string in Ruby
asked
Oct 4
by
avibootz
ruby
ruby-string
ruby-remove-characters-first-string-from-second-string
remove-characters-first-string-from-second-string
1
answer
52
views
How to calculate annually compound interest in Ruby
asked
Oct 3
by
avibootz
ruby
ruby-compound-interest
compound-interest
1
answer
60
views
How to convert a string to an array of characters in Ruby
asked
Oct 3
by
avibootz
ruby
ruby-string
ruby-string-to-array-characters
string-to-array-characters
1
answer
68
views
How to generate an 8 digits random number in Ruby
asked
Oct 2
by
avibootz
ruby
ruby-generate-8-digit-random-number
generate-8-digit-random-number
2
answers
68
views
How do you find the position of the most significant bit (MSB) of an unsigned integer in Ruby
asked
Oct 1
by
avibootz
ruby
ruby-position-msb-integer
position-msb-integer
1
answer
54
views
How to use XOR to swap two characters in a string in Ruby
asked
Sep 30
by
avibootz
ruby
ruby-xor-swap-two-characters-string
xor-swap-two-characters-string
1
answer
72
views
How to find the intersection of two arrays (values that exist in both arrays) in Ruby
asked
Sep 29
by
avibootz
ruby
ruby-intersection-two-arrays
intersection-two-arrays
1
answer
66
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
89
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
70
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
60
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
71
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
64
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
68
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
69
views
How to compare two dates in Ruby
asked
Sep 20
by
avibootz
ruby
ruby-compare-two-dates
compare-two-dates
2
answers
100
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
76
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
81
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
75
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
90
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
82
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
75
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
82
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
80
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
72
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
83
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
79
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
89
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
87
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
95
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
102
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
94
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
96
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
88
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
90
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
Page:
1
2
3
4
5
6
...
9
next »
...