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
java
c
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
r
css
bootstrap
win32
groovy
winapi
sql
mysql
jquery
pascal-string
lua
winforms
vbnet
kotlin-string
bash
swift-string
c-string
cpp-string
go-string
c#-string
php-string
java-string
vbnet-string
rust-string
python-string
cpp-vector
f#
opengl
scala-string
javascript-string
pascal-array
c-array
swift-array
cobol
typescript-string
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
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
sdl3
angularjs
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
dot-product-two-arrays
string-to-title-case
create-infinite-loop
rust-matrix
go-matrix
javascript-matrix
raylib
glfw
function-optional-parameter
decode-leet-speak
decimal-number-to-string-leading-zeros
reconstruct-sparse-matrix-from-compact-triplet-matrix
Disclosure:
My content contains affiliate links.
Recent questions tagged CPP
40,904
questions
53,356
answers
573
users
Recent questions tagged CPP
3
answers
12
views
How to create a function with an optional parameter in C++
asked
12 hours
ago
by
avibootz
cpp
cpp-function-optional-parameter
function-optional-parameter
1
answer
15
views
How to build a pyramid from the numbers 3, 7, 5, 2, 4, 8, 6, 9, 0, 3 in C++
asked
1 day
ago
by
avibootz
cpp
cpp-build-pyramid-from-numbers
build-pyramid-from-numbers
1
answer
11
views
How to create a hash from two equal-length vectors (keys and values) in C++
asked
1 day
ago
by
avibootz
cpp
cpp-create-hash-from-two-equal-length-vectors
create-hash-from-two-equal-length-vectors
1
answer
11
views
How to write a generic swap function in C++
asked
1 day
ago
by
avibootz
cpp
cpp-generic-swap-function
generic-swap-function
1
answer
17
views
How to decode Leet Speak (where numbers resemble letters (7->T, 1->I, 5->S, 3 -> E)) in C++
asked
2 days
ago
by
avibootz
cpp
cpp-decode-leet-speak
decode-leet-speak
1
answer
16
views
How to convert "7H15 M3554G3" into words in C++
asked
2 days
ago
by
avibootz
cpp
cpp-convert-7h15-m3554g3-into-words
convert-7h15-m3554g3-into-words
1
answer
16
views
How to express a decimal number as a fixed-length string with leading zeros in C++
asked
3 days
ago
by
avibootz
cpp
cpp-decimal-number-to-string-leading-zeros
decimal-number-to-string-leading-zeros
1
answer
14
views
How to create an enumeration of constants with and without explicit values in C++
asked
4 days
ago
by
avibootz
cpp
cpp-create-enumeration-with-without-values
create-enumeration-with-without-values
1
answer
15
views
How to split a string into palindromic segments, where each segment is a palindrome in C++
asked
4 days
ago
by
avibootz
cpp
cpp-split-string-into-palindromic-segments
split-string-into-palindromic-segments
1
answer
17
views
How to validate a password (must contain uppercase, lowercase, digit, and special character) in C++
asked
4 days
ago
by
avibootz
cpp
cpp-validate-password
validate-password
1
answer
22
views
How to reconstruct a full sparse matrix from a compact (triplet) matrix in C++
asked
5 days
ago
by
avibootz
cpp
cpp-reconstruct-sparse-matrix-from-compact-triplet-matrix
reconstruct-sparse-matrix-from-compact-triplet-matrix
1
answer
25
views
How to compact a sparse matrix in C++
asked
5 days
ago
by
avibootz
cpp
cpp-compact-sparse-matrix
compact-sparse-matrix
1
answer
26
views
How to check if a given array is a sparse array in C++
asked
6 days
ago
by
avibootz
cpp
cpp-check-sparse-array
check-sparse-array
1
answer
24
views
How to create a generic method in C++
asked
Apr 22
by
avibootz
cpp
cpp-create-generic-method
create-generic-method
4
answers
36
views
How to extract a substring between two tags [start] [end] in a string with C++
asked
Apr 20
by
avibootz
cpp
cpp-extract-substring-between-two-tags
extract-substring-between-two-tags
1
answer
31
views
How to compute the angle between two vectors in C++
asked
Apr 20
by
avibootz
cpp
cpp-compute-angle-two-vectors
compute-angle-two-vectors
1
answer
26
views
How to compute the cross product of two 3D vectors in C++
asked
Apr 20
by
avibootz
cpp
cpp-compute-cross-product-two-3d-vector
compute-cross-product-two-3d-vector
1
answer
25
views
How to add two vectors element‑wise in C++
asked
Apr 20
by
avibootz
cpp
cpp-add-two-vectors-element-wise
add-two-vectors-element-wise
1
answer
21
views
How to normalize a vector in C++
asked
Apr 20
by
avibootz
cpp
cpp-normalize-vector
normalize-vector
1
answer
26
views
How do you compute the magnitude (norm) of a vector in C++
asked
Apr 20
by
avibootz
cpp
cpp-magnitude-norm-vector
magnitude-norm-vector
1
answer
26
views
How to represent a mathematical vector in C++
asked
Apr 20
by
avibootz
cpp
cpp-represent-mathematical-vector
represent-mathematical-vector
2
answers
32
views
How to localize date format in C++
asked
Apr 19
by
avibootz
cpp
cpp-localize-date-format
localize-date-format
1
answer
25
views
How to check if a string is title case in C++
asked
Apr 17
by
avibootz
cpp
cpp-check-string-title-case
check-string-title-case
3
answers
38
views
How to convert a string to title case in C++
asked
Apr 17
by
avibootz
cpp
cpp-string-to-title-case
string-to-title-case
11
answers
47
views
How to copy a string in C++
asked
Apr 16
by
avibootz
cpp
cpp-copy-string
copy-string
1
answer
27
views
How to create a doubly linked list in C++
asked
Apr 15
by
avibootz
cpp
cpp-create-doubly-linked-list
create-doubly-linked-list
1
answer
35
views
How to represent the Boolean "true" and "false" in C++
asked
Apr 14
by
avibootz
cpp
cpp-represent-boolean-true-false
represent-boolean-true-false
2
answers
32
views
How to find the next number in the series 14, 25, 47, 91 with C++
asked
Apr 14
by
avibootz
cpp
cpp-next-number-series-14-25-47-91
next-number-series-14-25-47-91
2
answers
26
views
How to print all possible permutations (all possible orderings) of the words in C++
asked
Apr 14
by
avibootz
cpp
cpp-all-possible-permutations-words
all-possible-permutations-words
1
answer
28
views
How to calculate relative past time from a given date & time (e.g., 3 hours ago, 5 days ago, a month ago) in C++
asked
Apr 13
by
avibootz
cpp
cpp-calculate-relative-past-time-date-time
calculate-relative-past-time-date-time
1
answer
31
views
How to create a singly linked list in C++
asked
Apr 11
by
avibootz
cpp
cpp-create-singly-linked-list
create-singly-linked-list
1
answer
20
views
How to find the common free time for all employees from a vector of non-overlapping intervals in C++
asked
Apr 11
by
avibootz
cpp
cpp-common-free-time-vector-of-non-overlapping-intervals
common-free-time-vector-of-non-overlapping-intervals
4
answers
49
views
How to create an infinite loop in C++
asked
Apr 10
by
avibootz
cpp
cpp-create-infinite-loop
create-infinite-loop
1
answer
28
views
How to remove the minimum number of intervals so that the remaining intervals do not overlap in C++
asked
Apr 9
by
avibootz
cpp
cpp-remove-minimum-intervals-remaining-do-not-overlap
remove-minimum-intervals-remaining-do-not-overlap
1
answer
31
views
How to add a new interval into a sorted vector of non‑overlapping intervals in C++
asked
Apr 9
by
avibootz
cpp
cpp-add-interval-into-sorted-vector-non-overlapping-intervals
add-interval-into-sorted-vector-non-overlapping-intervals
2
answers
36
views
How to detect whether any intervals overlap in a vector of start and end times with C++
asked
Apr 7
by
avibootz
cpp
cpp-detect-intervals-overlap-vector-start-end-times
detect-intervals-overlap-vector-start-end-times
1
answer
28
views
What to include to use LLONG_MIN in C++
asked
Apr 7
by
avibootz
cpp
cpp-include-llong-min
include-llong-min
3
answers
37
views
How to find the max sum of a subarray of length k with unique elements (edge‑case‑safe) in C++
asked
Apr 7
by
avibootz
cpp
cpp-max-sum-subarray-length-k-unique-elements
max-sum-subarray-length-k-unique-elements
1
answer
25
views
How to print text diagonally from left to right recursively in C++
asked
Apr 7
by
avibootz
cpp
cpp-print-text-diagonally-from-left-to-right-recursively
print-text-diagonally-from-left-to-right-recursively
1
answer
31
views
How to print text diagonally from left to right in C++
asked
Apr 7
by
avibootz
cpp
cpp-print-text-diagonally-from-left-to-right
print-text-diagonally-from-left-to-right
1
answer
28
views
How to find the 3rd smallest element in a vector with C++
asked
Apr 5
by
avibootz
cpp
cpp-3rd-smallest-element-vector
3rd-smallest-element-vector
1
answer
37
views
What to include to use nth_element in C++
asked
Apr 5
by
avibootz
cpp
cpp-include-nth_element
include-nth_element
1
answer
33
views
What to include to use priority_queue in C
asked
Apr 5
by
avibootz
cpp
cpp-include-priority_queue
include-priority_queue
3
answers
41
views
How to find the maximum value we can achieve by picking k elements from a vector in C++
asked
Apr 5
by
avibootz
cpp
cpp-maximum-value-k-elements-vector
maximum-value-k-elements-vector
1
answer
27
views
How to get a list of powers of 2 of bits of a number whose sum is equal to the number in C++
asked
Apr 4
by
avibootz
cpp
cpp-list-powers-of-2-of-bits-of-number-sum-equal-to-number
list-powers-of-2-of-bits-of-number-sum-equal-to-number
1
answer
40
views
How to check whether only 2 bits in a number at a specific position are on (edge‑case‑safe) with C++
asked
Apr 3
by
avibootz
cpp
cpp-check-2-number-bits-specific-position-on-edge-case-safe
check-2-number-bits-specific-position-on-edge-case-safe
1
answer
39
views
How to check whether only 2 bits in a vector of bits at a specific position are on (edge‑case‑safe) with C++
asked
Apr 3
by
avibootz
cpp
cpp-check-2-vector-bits-specific-position-on-edge-case-safe
check-2-vector-bits-specific-position-on-edge-case-safe
1
answer
27
views
How to write 5 different functions that check if a number is a power of 2 in C++
asked
Apr 2
by
avibootz
cpp
cpp-different-functions-check-number-power-of-2
different-functions-check-number-power-of-2
2
answers
48
views
How to write 4 different functions that check if a number is a power of 2 in C++
asked
Apr 1
by
avibootz
cpp
cpp-different-functions-check-number-power-of-2
different-functions-check-number-power-of-2
1
answer
30
views
How to find the longest subarray with exactly k distinct numbers in C++
asked
Apr 1
by
avibootz
cpp
cpp-longest-subarray-exactly-k-distinct-numbers
longest-subarray-exactly-k-distinct-numbers
Page:
1
2
3
4
5
6
...
78
next »
...