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 swift
43,835
questions
57,202
answers
573
users
Recent questions tagged swift
1
answer
137
views
How to generate N random integers, each with distinct digits and exact length L in Swift
asked
Jul 16
by
avibootz
swift
swift-generate-n-random-integers-with-distinct-digits-and-length-l
generate-n-random-integers-with-distinct-digits-and-length-l
1
answer
154
views
How to calculate the next multiple of 10 in Swift
asked
Jul 15
by
avibootz
swift
swift-next-multiple-of-10
next-multiple-of-10
1
answer
140
views
How to generate a UUID (Universally Unique Identifier) in Swift
asked
Jul 15
by
avibootz
swift
swift-generate-uuid
generate-uuid
1
answer
153
views
How to sort a string in the order: lowercase letters - uppercase letters - odd digits - even digits in Swift
asked
Jul 14
by
avibootz
swift
swift-sort-string-order-lowercase-uppercase-odd-even
sort-string-order-lowercase-uppercase-odd-even
1
answer
159
views
How to create an alphabet rangoli (geometric and character pattern) of size N in Swift
asked
Jul 13
by
avibootz
swift
swift-create-alphabet-rangoli
create-alphabet-rangoli
1
answer
159
views
How to wrap a string into lines of width w in Swift
asked
Jul 12
by
avibootz
swift
swift-wrap-string-into-lines-width-w
wrap-string-into-lines-width-w
1
answer
166
views
How to compute the day of the week for January 1st of any given year in Swift
asked
Jul 11
by
avibootz
swift
swift-day-of-week-january-1st-any-given-year
day-of-week-january-1st-any-given-year
1
answer
143
views
How to get common letters that appear in every word in a list of words with Swift
asked
Jul 10
by
avibootz
swift
swift-common-letters-every-word-list-words
common-letters-every-word-list-words
1
answer
144
views
How to find the length of the longest common subsequence (LCS) in two strings with Swift
asked
Jul 9
by
avibootz
swift
swift-length-longest-common-subsequence-lcs-two-strings
length-longest-common-subsequence-lcs-two-strings
1
answer
140
views
How to encode and decode any string into Base‑36 in Swift
asked
Jul 7
by
avibootz
swift
swift-encode-decode-string-base-36
encode-decode-string-base-36
1
answer
156
views
How to generate random positive integers that sum to N in Swift
asked
Jul 6
by
avibootz
swift
swift-generate-random-integers-sum-to-n
generate-random-integers-sum-to-n
1
answer
148
views
How to perform multiple 5‑card draws from a shuffled 52‑card deck in Swift
asked
Jul 5
by
avibootz
swift
swift-perform-multiple-5-card-draws-from-52-card-deck
perform-multiple-5-card-draws-from-52-card-deck
1
answer
139
views
How to pick 5 random cards from a 52‑card deck in Swift
asked
Jul 4
by
avibootz
swift
swift-pick-5-random-cards-from-a-52-card-deck
pick-5-random-cards-from-a-52-card-deck
1
answer
145
views
How to randomly place a random value in each row of an 8x8 int list with zero values in Swift
asked
Jul 4
by
avibootz
swift
swift-randomly-place-random-value-each-row-8-8-int-array
randomly-place-random-value-each-row-8-8-int-array
1
answer
147
views
How to display string letters sorted by frequency in Swift
asked
Jul 3
by
avibootz
swift
swift-display-string-letters-sorted-by-frequency
display-string-letters-sorted-by-frequency
1
answer
137
views
How to find the frequency of each digit (0–9) in a number with Swift
asked
Jul 2
by
avibootz
swift
swift-find-frequency-each-digit-in-number
find-frequency-each-digit-in-number
1
answer
139
views
How to calculates the frequency of odd and even numbers in the given matrix with Swift
asked
Jul 2
by
avibootz
swift
swift-calculates-frequency-odd-even-numbers-matrix
calculates-frequency-odd-even-numbers-matrix
1
answer
153
views
How to find all divisors of a number in Swift
asked
Jul 1
by
avibootz
swift
swift-find-all-divisors-of-number
find-all-divisors-of-number
1
answer
139
views
How to reverse a singly linked list in-place in Swift
asked
Jun 30
by
avibootz
swift
swift-reverse-singly-linked-list-in-place
reverse-singly-linked-list-in-place
1
answer
143
views
How to iterate an array from the middle outward (stepping left and right alternately) in Swift
asked
Jun 29
by
avibootz
swift
swift-iterate-array-from-middle-outward
iterate-array-from-middle-outward
1
answer
153
views
How to calculates the distance between two decimal numbers (absolute difference) in Swift
asked
Jun 28
by
avibootz
swift
swift-calculates-distance-between-two-decimal-numbers
calculates-distance-between-two-decimal-numbers
1
answer
134
views
How to determine whether an n‑bit binary number is divisible by 5 in Swift
asked
Jun 28
by
avibootz
swift
swift-determine-whether-n-bit-binary-number-divisible-by-5
determine-whether-n-bit-binary-number-divisible-by-5
1
answer
167
views
How to check whether a number is positive/zero/negative without using conditional statements in Swift
asked
Jun 27
by
avibootz
swift
swift-check-positive-zero-negative-without-conditional-statements
check-positive-zero-negative-without-conditional-statements
1
answer
150
views
How to case-insensitively check if a character exists in a string with Swift
asked
Jun 26
by
avibootz
swift
swift-case-insensitively-check-character-exists-in-string
case-insensitively-check-character-exists-in-string
1
answer
150
views
How to check if a character exists in a string with Swift
asked
Jun 26
by
avibootz
swift
swift-check-character-exists-string
check-character-exists-string
1
answer
141
views
How to zero every n-bit from a number if that bit is 1 in Swift
asked
Jun 25
by
avibootz
swift
swift-zero-every-n-bit-from-number
zero-every-n-bit-from-number
1
answer
142
views
How to remove multiple bits from a number and shift the remaining bits right to fill the gaps in Swift
asked
Jun 24
by
avibootz
swift
swift-remove-multiple-bits-shift-remaining-bits-right-to-fill-gaps
remove-multiple-bits-shift-remaining-bits-right-to-fill-gaps
1
answer
142
views
How to remove a bit from a number and shift all bits to the right to fill the gap in Swit
asked
Jun 24
by
avibootz
swift
swift-remove-bit-from-number-shift-bits-right-to-fill-the-gap
remove-bit-from-number-shift-bits-right-to-fill-the-gap
1
answer
141
views
How to combine two 32-bit values into one 64-bit value in Swift
asked
Jun 23
by
avibootz
swift
swift-combine-two-32-bit-values-into-one-64-bit-value
combine-two-32-bit-values-into-one-64-bit-value
1
answer
136
views
How to rank elements of an integer array based on their sorted order in Swift
asked
Jun 22
by
avibootz
swift
swift-string-rank-elements-array-based-on-sorted-order
rank-elements-array-based-on-sorted-order
1
answer
143
views
How to rank elements of an array in Swift
asked
Jun 21
by
avibootz
swift
swift-rank-elements-array
rank-elements-array
1
answer
145
views
How to list all ISO countries (alpha-2 country code - country name) in Swift
asked
Jun 17
by
avibootz
swift
swift-list-all-iso-countries-alpha-2-country-code-country-name
list-all-iso-countries-alpha-2-country-code-country-name
1
answer
200
views
How to get the country name from the 2-letter country code (alpha-2) in Swift
asked
Jun 17
by
avibootz
swift
swift-country-name-from-country-code
country-name-from-country-code
1
answer
159
views
How to flatten a 2D array into a sorted one-dimensional array with unique values in Swift
asked
Jun 16
by
avibootz
swift
swift-flatten-2d-array-into-sorted-one-dimensional-unique-array
flatten-2d-array-into-sorted-one-dimensional-unique-array
1
answer
139
views
How to flatten a 2D array into a sorted one-dimensional array in Swift
asked
Jun 16
by
avibootz
swift
swift-flatten-2d-array-into-sorted-one-dimensional-array
flatten-2d-array-into-sorted-one-dimensional-array
1
answer
156
views
How to find the first integer equal to the sum of its digits raised to some power in Swift
asked
Jun 14
by
avibootz
swift
swift-first-integer-equal-sum-its-digits-raised-some-power
first-integer-equal-sum-its-digits-raised-some-power
1
answer
165
views
How to find the first power of 2 whose leading digits are 12 in Swift
asked
Jun 13
by
avibootz
swift
swift-first-power-of-2-whose-leading-digits-are-12
first-power-of-2-whose-leading-digits-are-12
1
answer
159
views
How to find the first 10 prime Fibonacci numbers in Swift
asked
Jun 12
by
avibootz
swift
swift-first-10-prime-fibonacci-numbers
first-10-prime-fibonacci-numbers
1
answer
156
views
How to represent currency in Swift
asked
Jun 12
by
avibootz
swift
swift-represent-currency
represent-currency
2
answers
180
views
How to find all possible ways to write a positive integer as a sum of positive integers in Swift
asked
Jun 10
by
avibootz
swift
swift-ways-to-write-positive-integer-as-sum-of-positive-integers
ways-to-write-positive-integer-as-sum-of-positive-integers
1
answer
148
views
How to enforce immutability to prevent the modification of values in Swift
asked
Jun 10
by
avibootz
swift
swift-enforce-immutability
enforce-immutability
1
answer
141
views
How to convert between mm, cm, meters, kilometers, miles, feet, yards, and inches in Swift
asked
Jun 8
by
avibootz
swift
swift-convert-mm-cm-meters-km-miles-feet-yards-inches
convert-mm-cm-meters-km-miles-feet-yards-inches
2
answers
200
views
How to calculate the area of a pentagon in Swift
asked
Jun 6
by
avibootz
swift
swift-calculate-area-pentagon
calculate-area-pentagon
1
answer
147
views
How to find A and B where A and B are prime numbers and A * B = 12349 in Swift
asked
Jun 6
by
avibootz
swift
swift-a-b-prime-a-mul-b-equal-12349-find-a-b
a-b-prime-a-mul-b-equal-12349-find-a-b
2
answers
168
views
How to use higher-order functions in Swift
asked
Jun 4
by
avibootz
swift
swift-use-higher-order-functions
use-higher-order-functions
4
answers
243
views
How to use closure in Swift
asked
Jun 3
by
avibootz
swift
swift-use-closure
use-closure
2
answers
193
views
How to use an anonymous function in Swift
asked
Jun 2
by
avibootz
swift
swift-anonymous-function
anonymous-function
1
answer
145
views
How to remove parentheses and the text inside them from a string in Swift
asked
Jun 1
by
avibootz
swift
swift-remove-parentheses-and-text-from-a-string
remove-parentheses-and-text-from-a-string
1
answer
157
views
How to find the day of the week on any given date in Swift
asked
May 31
by
avibootz
swift
swift-date
swift-find-day-of-week-any-given-date
find-day-of-week-any-given-date
1
answer
142
views
How to convert only the date without time to a string in Swift
asked
May 31
by
avibootz
swift
swift-convert-only-date-without-time-to-string
convert-only-date-without-time-to-string
Page:
« prev
1
2
3
4
5
6
7
8
...
21
next »
...