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
ruby
html
vbnet
dart
r
css
bootstrap
win32
groovy
winapi
sql
mysql
jquery
pascal-string
lua
winforms
kotlin-string
cpp-string
c-string
swift-string
go-string
php-string
bash
java-string
c#-string
vbnet-string
python-string
cobol
rust-string
scala-string
javascript-string
cpp-vector
typescript-string
pascal-array
f#
opengl
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
rot13
reverse-string-without-pecial-characters
all-dates-between-2-dates
first-repeated-character-string
difference-two-dates-seconds
get-n-digit-after-decimal-point-float
Disclosure:
My content contains affiliate links.
Recent questions tagged ruby
43,835
questions
57,202
answers
573
users
Recent questions tagged ruby
1
answer
7
views
How to find the two largest elements in an array with Ruby
asked
19 hours
ago
by
avibootz
ruby
ruby-two-largest-elements-array
two-largest-elements-array
1
answer
7
views
How to find the smallest and largest digits in a number in Ruby
asked
22 hours
ago
by
avibootz
ruby
ruby-smallest-largest-digits-number
smallest-largest-digits-number
1
answer
6
views
How to find the largest and the smallest word in a string with Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-largest-smallest-word-string
largest-smallest-word-string
1
answer
18
views
How to reverse a string without affecting special characters in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-reverse-string-without-pecial-characters
reverse-string-without-pecial-characters
1
answer
16
views
How to implement the ROT13 algorithm (replace a letter with the 13th letter after it) in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-implement-rot13-algorithm
implement-rot13-algorithm
rot13
1
answer
23
views
How to get the number of months between two dates in Ruby
asked
3 days
ago
by
avibootz
ruby
ruby-months-between-two-dates-months
months-between-two-dates-months
1
answer
28
views
How to get all dates between 2 dates in Ruby
asked
4 days
ago
by
avibootz
ruby
ruby-all-dates-between-2-dates
all-dates-between-2-dates
1
answer
29
views
How to find the last repeated character in a string with Ruby
asked
5 days
ago
by
avibootz
ruby
ruby-last-repeated-character-string
last-repeated-character-string
1
answer
38
views
How to find the first repeated character in a string with Ruby
asked
6 days
ago
by
avibootz
ruby
ruby-first-repeated-character-string
first-repeated-character-string
1
answer
35
views
How to access static properties in an object in Ruby
asked
6 days
ago
by
avibootz
ruby
ruby-access-static-properties-in-object
access-static-properties-in-object
1
answer
43
views
How to find three consecutive numbers with the largest sum in an array of integers in Ruby
asked
Oct 30
by
avibootz
ruby
ruby-three-consecutive-numbers-largest-sum-array
three-consecutive-numbers-largest-sum-array
1
answer
35
views
How to calculate time if we have the distance and speed (kilometers per hour) in Ruby
asked
Oct 29
by
avibootz
ruby
ruby-calculate-time-distance-speed
calculate-time-distance-speed
2
answers
60
views
How to generate 7 random numbers out of 33 (1-33) in Ruby
asked
Oct 28
by
avibootz
ruby
ruby-generate-7-random-numbers-1-33
generate-7-random-numbers-1-33
1
answer
68
views
How to get the difference between two dates in seconds with Ruby
asked
Oct 27
by
avibootz
ruby
ruby-difference-two-dates-seconds
difference-two-dates-seconds
2
answers
62
views
How to calculate the largest positive integer in a 64-bit system in Ruby
asked
Oct 26
by
avibootz
ruby
ruby-largest-positive-integer-64-bit
largest-positive-integer-64-bit
1
answer
57
views
How to get and use a hash code for an array of integers in Ruby
asked
Oct 25
by
avibootz
ruby
ruby-get-use-hash-code-array-integers
get-use-hash-code-array-integers
1
answer
54
views
How to sort a hash first by value, then by key in Ruby
asked
Oct 24
by
avibootz
ruby
sort-hash-value-key
1
answer
49
views
How to find the maximum distance between two numbers in a slice with Ruby
asked
Oct 23
by
avibootz
ruby
ruby-maximum-distance-two-numbers-slice
maximum-distance-two-numbers-slice
2
answers
83
views
How to find the minimum distance between two numbers in an array with Ruby
asked
Oct 21
by
avibootz
ruby
ruby-minimum-distance-two-numbers-array
minimum-distance-two-numbers-array
1
answer
68
views
How to compute the total number of combinations when choosing 7 numbers out of 33 in Ruby
asked
Oct 20
by
avibootz
ruby
ruby-total-combinations-choosing-7-out-of-33
total-combinations-choosing-7-out-of-33
6
answers
206
views
How to format a string using fixed-width fields in Ruby
asked
Oct 18
by
avibootz
ruby
ruby-string
ruby-format-string-fixed-width-fields
format-string-fixed-width-fields
2
answers
90
views
How to check if two equal-length strings are at least 50% equal in Ruby
asked
Oct 17
by
avibootz
ruby
ruby-two-equal-length-strings-at-least-50-percent-equal
two-equal-length-strings-at-least-50-percent-equal
2
answers
66
views
How to convert an integer to a string in base b with Ruby
asked
Oct 17
by
avibootz
ruby
ruby-convert-integer-string-base-b
convert-integer-string-base-b
3
answers
97
views
How to print the bits of a character in Ruby
asked
Oct 16
by
avibootz
ruby
ruby-print-bits-character
print-bits-character
1
answer
71
views
How to get the Nth digit after the decimal point of a floating-point number in Ruby
asked
Oct 15
by
avibootz
ruby
ruby-get-n-digit-after-decimal-point-float
get-n-digit-after-decimal-point-float
1
answer
70
views
How to get the Nth digit of a number in Ruby
asked
Oct 14
by
avibootz
ruby
ruby-get-n-digit-of-number
get-n-digit-of-number
1
answer
75
views
How to get the Nth digit of a number from the right in Ruby
asked
Oct 14
by
avibootz
ruby
ruby-get-n-digit-of-number-from-right
get-n-digit-of-number-from-right
3
answers
127
views
How to removes all extensions from a filename in Ruby
asked
Oct 13
by
avibootz
ruby
ruby-removes-all-extensions-filename
removes-all-extensions-filename
1
answer
79
views
How to extract only the filename in Ruby
asked
Oct 13
by
avibootz
ruby
ruby-extract-filename
extract-filename
1
answer
100
views
How to remove file extension in Ruby
asked
Oct 13
by
avibootz
ruby
ruby-remove-file-extension
remove-file-extension
1
answer
127
views
How to merge two sorted arrays without duplicates in Ruby
asked
Oct 11
by
avibootz
ruby
ruby-array
ruby-merge-arrays-without-duplicates
merge-arrays-without-duplicates
2
answers
165
views
How to sum the corners of a matrix in Ruby
asked
Oct 11
by
avibootz
ruby
ruby-matrix
ruby-sum-corners-matrix
sum-corners-matrix
1
answer
146
views
How to extract all the substrings between single quotation marks, including the quotes in Ruby
asked
Oct 11
by
avibootz
ruby
ruby-substring
ruby-extract-all-substrings-single-quotation-marks
extract-all-substrings-single-quotation-marks
3
answers
202
views
How to extract all the substrings between single quotation marks in Ruby
asked
Oct 11
by
avibootz
ruby
ruby-substring
ruby-extract-all-substrings-single-quotation-marks
extract-all-substrings-single-quotation-marks
3
answers
159
views
How to extract substring between single quotation marks in Ruby
asked
Oct 11
by
avibootz
ruby
ruby-substring
ruby-extract-substring-single-quotation-marks
extract-substring-single-quotation-marks
3
answers
185
views
How to swap two numbers without using a third variable (temp) in Ruby
asked
Oct 9
by
avibootz
ruby
ruby-swap-two-numbers
swap-two-numbers
ruby-swap-two-numbers-without-third
swap-two-numbers-without-third
1
answer
100
views
How to rearrange an array into a zig-zag pattern (a < b > c < d > e < f > g) in Ruby
asked
Oct 8
by
avibootz
ruby
ruby-rearrange-array-zig-zag-pattern
rearrange-array-zig-zag-pattern
1
answer
86
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
134
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
130
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
136
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
82
views
How to calculate annually compound interest in Ruby
asked
Oct 3
by
avibootz
ruby
ruby-compound-interest
compound-interest
1
answer
89
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
90
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
92
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
86
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
96
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
93
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
125
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
105
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
Page:
1
2
3
4
5
6
...
10
next »
...