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
c-string
swift-string
cpp-string
go-string
php-string
cobol
c#-string
java-string
vbnet-string
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
sdl3
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
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
longest-substring-without-repeating-characters
calculate-volume-cube
divide-given-amount-into-bills-coins
convert-decimal-number-to-rational-number
count-non-overlapping-instances-substring-in-string
print-floyds-triangle
case-insensitively-check-character-exists-in-string
calculate-area-pentagon
measure-function-execution-time
Disclosure:
My content contains affiliate links.
Recent questions tagged ruby
42,690
questions
55,442
answers
573
users
Recent questions tagged ruby
1
answer
64
views
How to convert seconds into weeks, days, hours, minutes, and seconds in Ruby
asked
May 20
by
avibootz
ruby
ruby-seconds-into-weeks-days-hours-minutes-seconds
seconds-into-weeks-days-hours-minutes-seconds
1
answer
70
views
How to sort a list of files by name, extension, dates, and size in Ruby
asked
May 17
by
avibootz
ruby
ruby-sort-list-files-by-name-extension-dates-size
sort-list-files-by-name-extension-dates-size
1
answer
70
views
How to create a list of random file names, including extension, dates, and file size in Ruby
asked
May 16
by
avibootz
ruby
ruby-file
ruby-list-random-file-names-extension-dates-size
list-random-file-names-extension-dates-size
1
answer
65
views
How to create a list of random dates in Ruby
asked
May 16
by
avibootz
ruby
ruby-create-list-random-dates
create-list-random-dates
1
answer
71
views
How to compress and decompress repeated string characters by storing the repeated length (RLE) in Ruby
asked
May 14
by
avibootz
ruby
ruby-compress-decompress-repeated-string-characters
compress-decompress-repeated-string-characters
1
answer
62
views
How to calculate the 100th term of the sequence 8, 64, 80, 136, 152 in Ruby
asked
May 12
by
avibootz
ruby
ruby-calculate-100th-term-of-sequence-8-64-80-136-152
calculate-100th-term-of-sequence-8-64-80-136-152
1
answer
69
views
How to convert an array of multi‑digit numbers to a number in Ruby
asked
May 10
by
avibootz
ruby
ruby-array-multi-digit-numbers-to-number
array-multi-digit-numbers-to-number
1
answer
82
views
How to convert an array of digits to a number in Ruby
asked
May 10
by
avibootz
ruby
ruby-array-digits-to-number
array-digits-to-number
1
answer
79
views
How to get accurate ticks from a timer (high‑resolution timer) in Ruby
asked
May 9
by
avibootz
ruby
rust-accurate-ticks-timer
accurate-ticks-timer
1
answer
79
views
How to implement the binary search algorithm in Ruby
asked
May 8
by
avibootz
ruby
ruby-binary-search-algorithm
binary-search-algorithm
1
answer
69
views
How to calculate the CRC32 of a string in Ruby
asked
May 8
by
avibootz
ruby
ruby-calculate-crc32-string
calculate-crc32-string
1
answer
74
views
How to create a sorted unique list from a matrix in Ruby
asked
May 7
by
avibootz
ruby
ruby-sorted-unique-array-from-matrix
sorted-unique-array-from-matrix
1
answer
75
views
How to create a common sorted unique array from 3 integer arrays in Ruby
asked
May 6
by
avibootz
ruby
ruby-common-sorted-unique-array-from-arrays
common-sorted-unique-array-from-arrays
1
answer
74
views
How to convert an integer into its written‑out English words in Ruby
asked
May 5
by
avibootz
ruby
ruby-convert-integer-english-words
convert-integer-english-words
1
answer
69
views
How to calculate all the less than 500 additive prime numbers in Ruby
asked
May 4
by
avibootz
ruby
ruby-calculate-additive-prime
calculate-additive-prime
1
answer
74
views
How to define a terabyte constant in Ruby
asked
May 3
by
avibootz
ruby
ruby-terabyte-constant
terabyte-constant
1
answer
66
views
How to define an exabyte constant in Ruby
asked
May 3
by
avibootz
ruby
ruby-exabyte-constant
exabyte-constant
1
answer
71
views
How to define a petabyte constant in Ruby
asked
May 3
by
avibootz
ruby
ruby-petabyte-constant
petabyte-constant
1
answer
88
views
How to use math functions and constants in Ruby
asked
Apr 30
by
avibootz
ruby
ruby-math-functions-constants
math-functions-constants
5
answers
133
views
How to create a function with an optional parameter in Ruby
asked
Apr 29
by
avibootz
ruby
ruby-function-optional-parameter
function-optional-parameter
1
answer
84
views
How to decode Leet Speak (where numbers resemble letters (7->T, 1->I, 5->S, 3 -> E)) in Ruby
asked
Apr 27
by
avibootz
ruby
ruby-decode-leet-speak
decode-leet-speak
1
answer
76
views
How to reconstruct a full sparse matrix from a compact (triplet) matrix in Ruby
asked
Apr 27
by
avibootz
ruby
ruby-reconstruct-sparse-matrix-from-compact-triplet-matrix
reconstruct-sparse-matrix-from-compact-triplet-matrix
1
answer
74
views
How to express a decimal number as a fixed-length string with leading zeros in Ruby
asked
Apr 26
by
avibootz
ruby
ruby-decimal-number-to-string-leading-zeros
decimal-number-to-string-leading-zeros
1
answer
86
views
How to create an enumeration of constants with and without explicit values in Ruby
asked
Apr 26
by
avibootz
ruby
ruby-create-enumeration-with-without-values
create-enumeration-with-without-values
1
answer
72
views
How to compact a sparse matrix in Ruby
asked
Apr 24
by
avibootz
ruby
ruby-compact-sparse-matrix
compact-sparse-matrix
1
answer
85
views
How to search for a word in a grid of characters with Ruby
asked
Apr 23
by
avibootz
ruby
ruby-search
ruby-grid
ruby-search-word-grid-characters
search-word-grid-characters
4
answers
122
views
How to write a loop with a specified step in Ruby
asked
Apr 10
by
avibootz
ruby
ruby-loop-specified-step
loop-specified-step
2
answers
165
views
How to count backwards (Print the numbers N, N - 1, ..., 0 (included)) in Ruby
asked
Jul 20, 2025
by
avibootz
ruby
ruby-loop
1
answer
184
views
How to round a floating-point number to an integer in Ruby
asked
May 14, 2025
by
avibootz
ruby
ruby-round
1
answer
210
views
How to use gets.chomp() inside a while loop in Ruby
asked
Apr 26, 2025
by
avibootz
ruby
ruby-loop
1
answer
139
views
How to print array values and the indexes in Ruby
asked
Mar 22, 2025
by
avibootz
ruby
ruby-array
1
answer
193
views
How to check if a variable is not nil and not zero in Ruby
asked
Jun 6, 2024
by
avibootz
ruby
2
answers
225
views
How to create a range of numbers in Ruby
asked
Jan 13, 2024
by
avibootz
ruby
1
answer
192
views
How to remove duplicate characters from a string in Ruby
asked
Jun 11, 2023
by
avibootz
ruby
1
answer
205
views
How to swap cases in a string with Ruby
asked
Jun 11, 2023
by
avibootz
ruby
1
answer
210
views
How to convert the first digits in a string to a float with Ruby
asked
Jun 11, 2023
by
avibootz
ruby
1
answer
196
views
How to declare and initialize a set containing unique objects in Ruby
asked
Mar 11, 2023
by
avibootz
ruby
1
answer
232
views
How to remove multiple items from an array by values in Ruby
asked
Mar 1, 2023
by
avibootz
ruby
1
answer
209
views
How to remove an item from an array by index in Ruby
asked
Mar 1, 2023
by
avibootz
ruby
2
answers
219
views
How to create a two dimensional (2D) array in Ruby
asked
Feb 16, 2023
by
avibootz
ruby
2
answers
268
views
How to convert float to string with 2 decimal places in Ruby
asked
Feb 13, 2023
by
avibootz
ruby
3
answers
266
views
How to get character code (ASCII and Unicode) in Ruby
asked
Jan 22, 2023
by
avibootz
ruby
ruby-character-code-ascii-unicode
character-code-ascii-unicode
1
answer
163
views
How to create a function in Ruby
asked
Dec 20, 2022
by
avibootz
ruby
1
answer
195
views
How to merge dictionaries in Ruby
asked
Dec 15, 2022
by
avibootz
ruby
2
answers
200
views
How to create key value dictionary in Ruby
asked
Dec 11, 2022
by
avibootz
ruby
1
answer
181
views
How to access the address of a variable in Ruby
asked
Nov 4, 2022
by
avibootz
ruby
1
answer
194
views
How to add two stdin input numbers in Ruby
asked
Oct 19, 2022
by
avibootz
ruby
1
answer
179
views
How to use print from end to start in Ruby
asked
Oct 17, 2022
by
avibootz
ruby
1
answer
213
views
How to calculate the average of a double array of given length in Ruby
asked
Oct 17, 2022
by
avibootz
ruby
2
answers
245
views
How to calculate the average of an array of double values in Ruby
asked
Oct 17, 2022
by
avibootz
ruby
Page:
« prev
1
2
3
4
5
6
7
8
next »
...