Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Merge and MergeSort algorithms
algorithm
basics
c++
mergesort
merging
sorting
vector
vectorlist
0 Votes
5 Answers
11th Jun 2025, 3:31 PM
RAMさん
Why it fails to take address of bool from vector
addressof
booleans
c++
pointers
1 Vote
5 Answers
1st Apr 2025, 1:24 PM
Ketan Lalcheta
Why 3 destructor calls with 2 constructor calls
c++
constructors
destructor
reserve
shrink_to_fit
vector
1 Vote
7 Answers
8th Dec 2024, 6:31 PM
Ketan Lalcheta
Vector to set effective way and for map
c++
map
set
vector
0 Votes
5 Answers
2nd Oct 2024, 11:55 AM
Ketan Lalcheta
vector of vector initialization and assignment
c++
fill
initialization
resize
vector
0 Votes
5 Answers
10th Sep 2024, 8:41 AM
Ketan Lalcheta
Why is this code dumped in this compiler?
c++
pair
vector
2 Votes
5 Answers
8th May 2024, 4:43 PM
TeaserCode
(ANSWERED) Importing and embedding a vector image
css
html
images
js
objects
web
3 Votes
5 Answers
16th Jan 2024, 6:23 PM
Izaiah Kay
How can I get a vector with wanted size?
c++
delete
vector
0 Votes
4 Answers
29th Dec 2023, 3:14 PM
TeaserCode
How to store pointer data in vector in case of CRTP
c++
crtp
vector
0 Votes
5 Answers
27th Sep 2023, 7:30 AM
Ketan Lalcheta
I have attached my doubt in the below code
c++
vector
1 Vote
1 Answer
19th Aug 2023, 8:33 AM
King
I need a mentor to help me to write a hotel management program in c++ for exercise.
c++
classes
vector
1 Vote
13 Answers
5th Aug 2023, 7:14 AM
Saba
Cout the number of occurence of a particular element x in c++ vector??
arrays
c++
vector
0 Votes
2 Answers
26th Jul 2023, 4:00 PM
Anuj Khare
A fatal bug in my vector implementation, any solution?
c++
ub
user-defined-vector
vector
1 Vote
33 Answers
21st Jun 2023, 10:54 AM
Ali_combination
Pass by reference or pass by pointer?
cpp
pass-by-pointer
pass-by-value
vector
4 Votes
23 Answers
26th Apr 2023, 3:41 PM
Ali_combination
My code below is supposed to take a number as input and output the color name at that index. Please explain where I went wrong.
r
vector
1 Vote
3 Answers
8th Apr 2023, 9:01 PM
Kody Marsh
Why no change in emplace_back and push_back
c++
emplace_back
heap
push_back
string
vector
2 Votes
1 Answer
6th Apr 2023, 12:01 PM
Ketan Lalcheta
Hey everyone ,my question is that after extraction of features from signal , how we change these to vector and make a class.
colab
jupyter
python
1 Vote
6 Answers
23rd Mar 2023, 6:31 PM
Muhammad Faisal
Enclosing vector in initialiser lists calls l-value or r-value overload?
c++
curly-braces
l-value
overload
r-value
vector
1 Vote
1 Answer
18th Mar 2023, 10:52 AM
Edward Finkelstein
How transfer the elements of a vector to an array
java
0 Votes
1 Answer
7th Feb 2023, 4:57 PM
Hanin Hanin
Best way to access vector element
[]
at()
c++
size()
vector
0 Votes
2 Answers
2nd Jan 2023, 9:51 AM
Ketan Lalcheta
Priority Queue Vs Vector
c++
priority_queue
vector
1 Vote
3 Answers
27th Dec 2022, 5:26 AM
Ketan Lalcheta
Vector vs List
c++
list
speed
vector
0 Votes
4 Answers
19th Dec 2022, 12:14 PM
Ketan Lalcheta
How to allocate vector on heap for short string?
c++
heap
small_string
stack
vector
3 Votes
16 Answers
14th Dec 2022, 11:35 AM
Ketan Lalcheta
c++ question on 'It's a sign' challenge
c++
codecoach
vector
0 Votes
4 Answers
3rd Dec 2022, 1:21 PM
The_Fox
Why so much allocation on heap for vector with emplace back?
c++
emplace_back
heap
new
vector
2 Votes
12 Answers
28th Nov 2022, 1:30 PM
Ketan Lalcheta
Why vector does not call heap allocation
c++
heap
new
operator
vector
2 Votes
12 Answers
27th Nov 2022, 6:52 AM
Ketan Lalcheta
Why prev and advance have different implementation
algorithm
c++
iterator
vector
1 Vote
3 Answers
26th Nov 2022, 6:55 AM
Ketan Lalcheta
What is stored on stack for vector
c++
heap
sizeof
stack
vector
0 Votes
3 Answers
23rd Nov 2022, 1:35 PM
Ketan Lalcheta
How can I count frequencies of characters in string!!!!??
char
count
frequencies
heap
help
map
sort
string
vector
0 Votes
6 Answers
19th Nov 2022, 2:34 PM
Serety
How can I count frequencies of characters in string!!!!??
char
count
frequencies
heap
help
map
sort
string
vector
0 Votes
2 Answers
19th Nov 2022, 2:33 PM
Serety
How to print the statement?
c++
print
statement
strings
vector
0 Votes
13 Answers
7th Nov 2022, 12:28 PM
TeaserCode
Why base address of vector is not modified
allocation
c++
capacity
size
vector
0 Votes
2 Answers
6th Nov 2022, 7:33 PM
Ketan Lalcheta
How vector of vector is managed
c++
matrix
vectors
1 Vote
8 Answers
6th Nov 2022, 7:33 AM
Ketan Lalcheta
Data race in thread
c++
capacity
multithread
size
vector
2 Votes
1 Answer
28th Oct 2022, 1:09 PM
Ketan Lalcheta
finding the mode of strings
c++
code
vector
0 Votes
1 Answer
25th Oct 2022, 11:21 PM
Abdullah Othman
fill_n not working
c++
fill_n
vector
0 Votes
3 Answers
20th Oct 2022, 6:57 AM
Ketan Lalcheta
Can auto be considered as vector<int> or not
auto
c++
vector
0 Votes
7 Answers
17th Oct 2022, 6:17 PM
Ketan Lalcheta
How to filter data in vector of structure
c++
criteria
sorting
1 Vote
16 Answers
12th Oct 2022, 6:38 AM
Ketan Lalcheta
Radix sort algorithm without using vector or countsort
algo
dsa
-1 Vote
1 Answer
29th Sep 2022, 3:40 AM
Rahul Kaushik
shrink_to_fit on cleared vector
c++
shrink_to_fit
vector
2 Votes
11 Answers
26th Sep 2022, 7:00 PM
Ketan Lalcheta
how to compare current and previous element in list
c++
iterator
list
vector
1 Vote
3 Answers
26th Sep 2022, 7:04 AM
Ketan Lalcheta
size of vector and array not same why?
array
c++
cpp
vector
1 Vote
2 Answers
20th Jul 2022, 12:32 PM
Samir_Shah
Is it possible to convert 2d vector into 1d? If it is, how should i do that? [solved]
assignment
c++
starter
1 Vote
4 Answers
20th Jul 2022, 12:21 AM
Rostyslav Shamekhin
Why value changes for bool but not for int using auto
auto
bool
c++
int
vector
2 Votes
4 Answers
12th Jul 2022, 10:07 AM
Ketan Lalcheta
Why capacity changes for bool but not for int
bool
c++
capacity
int
size
vector
2 Votes
1 Answer
12th Jul 2022, 9:57 AM
Ketan Lalcheta
Why 6 calls to destructor for 5 objects?
c++
constructor
copy-constructor
destructor
vector
1 Vote
1 Answer
30th Jun 2022, 9:31 PM
Edward Finkelstein
Hello, I need your help. Please how to convert vector a1 to 2d vector a4?
1d
2d
c++
vector
0 Votes
8 Answers
3rd Jun 2022, 5:48 AM
TeaserCode
What's different in two type of initilization in vector
c++
initialiser
vector
1 Vote
6 Answers
7th May 2022, 2:00 PM
Ketan Lalcheta
Is it possible to check if a vector has increasing sequence in it? Given that it’s a random vector? C++
c++
vectors
0 Votes
5 Answers
27th Apr 2022, 8:25 PM
Annei ❤️
Needed help !!!!!!How to sort 2 d vector if given vector is rowwise sorted without using extra space in c++
vector
1 Vote
4 Answers
26th Apr 2022, 7:40 AM
Srishti Jaiswal
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
...
8
Next >
Hot today
Problem from code coach.
3 Votes
HTML quest i tried all but idk why showing wrong.
3 Votes
Responsive Layout with Bootstrap
4 Votes
Languages for animation and games development ?
1 Votes
Flutter
0 Votes
Coding foundations vs Python Developer
0 Votes
I don't know how to code or what to code
0 Votes
I just got here and python is going well bur waiting for the hearts nahhh🥲
0 Votes
How to start becoming a programmer
0 Votes
What is the problem with this code?
0 Votes