pro player
string Solution::solve(string A) {
int i=A.length()-1;
int j=-1;
int k;
string B="";
int count=0;
if(A.length()==0) return 0;
while(i>=0)
{
while(A[i]!=' ' || A[i]!=-1)
{
count++;
i--;
}
i++;
k=i;
for(;k<count+k;k++)
{
B[++j]=A[k];
}
i=i-2;
}
return B;
}
\Device\NUL
Felix
Can someone reccomend me a data structure pdf?
Praveen
Can someone reccomend me a data structure pdf?
https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.docdroid.net/ZPfHmS5/data-structures-and-algorithms-narasimha-karumanchi-pdf&ved=2ahUKEwihne7ky8T0AhUSxzgGHbM9AwgQFnoECAQQAQ&usg=AOvVaw2FAf3TvI4Ol808kPk8ev5p
Felix
shriman_deepak
Anonymous
C programming basic coding questions for coding test please any examples for test tomorrow is my coding test
Jui
Arnold
Someone invited me to a crypto scam group from this group
Arnold
Be careful guys
Apk
STRANGER
Can someone send me algorithm to find square root of a number step by step plz
\Device\NUL
Luiz
Hisco
Yeah am agree
STRANGER
shady
Hello I am trying to learn c++ language
shady
Is there anyone (from egypt would be preferable) can help me start learning?
Ram
Hello I am trying to learn c language
Can anyone help me
Ram
Ok thank you
Azhar
int *ptr = & arr[2]
Means third element of array?
Azhar
Azhar
Explain lil bit anyone
Talula
It means the same other than first if pointing to the address of 3rd element and second is actually storing the value of 3rd element.
Azhar
Talula
Pavel
You can think of pointers as just normal variables that store addresses to the memory
Azhar
Like arr[10] = { some }
Now *ptr = & arr[2]
Now asking that ptr = arr.. What the value of ptr
Azhar
Im not getting the question part.. Now my value changed to third element?
Azhar
Ok ok.. But if again saying ptr = arr means the address same? For which element
Aze
Hello pls who has a pdf copy of this book" design and evolution of c" should pls send it to my dm..
Azhar
ɛ n h ᴀ n c ɛ ґ 🧟♂️
ɛ n h ᴀ n c ɛ ґ 🧟♂️
ɛ n h ᴀ n c ɛ ґ 🧟♂️
Azhar
ɛ n h ᴀ n c ɛ ґ 🧟♂️
ɛ n h ᴀ n c ɛ ґ 🧟♂️
Ram
Hello
Which is the beat youtude channel for u
Arminio
Ram
Thank you
Anonymous
Could u suggest me a compiler i can use from my mobile
Ashish
STRANGER
Anonymous
Suggest me a c program to write output as
1
11
111
1111
11111
Anonymous
Anonymous
Anonymous
Talula
Shortcut😅
That is a long cut, because the program would be longer... otherwise you could just use loop.
Anonymous
Azhar
Allocatememory(int*, int)
Azhar
Juli
Guys
Juli
I need your help fast pls
Juli
Who can help me
Juli
#include <iostream>
using namespace std;
int main(void) {
const int N = 10;
int arrayOfIntegers[N];
std::cout << "You will be prompt to enter 10 integer numbers "
<< endl;
int counter = 0;
while ( counter < N )
{ // while loop begins
std::cout << "Please enter an integer number " << endl;
cin >> arrayOfIntegers[counter];
counter++;
}// while loop ends
int max = arrayOfIntegers[0];
/// compute min of data (begin)
for (int i=0; i < N; i++)
{ // for loop begins
if( arrayOfIntegers[i] > max )
max = arrayOfIntegers[i];
} // for loop ends
/// compute min of data (end)
std::cout << "The maximum of the values you have entered is: "
<< max << endl;
return 0;
} // end of main
Juli
I need to make 3 combinations with these programs
Juli
#include <iostream>
#include <stdlib.h>
using namespace std;
#define N 10
int main (void)
{ // beginning of main
int arrayOfIntegers[N] = {0, 2, 7, 99, 55, 44, 23, 17, 19, 1};
int searchItem;
cout << "For the number you enter, the program will perform " << endl;
cout << "sequential search in the array stored in memory" << endl;
cout << "Please enter an integer" << endl;
cin >> searchItem;
bool found = false;
int storeLocation=-1;
int searchResult=-1;
for (int i = 0; i < N; i++)
{ // for loop begins
if ( arrayOfIntegers[i] == searchItem )
{
found = true;
storeLocation = i;
break;
}
else{
found = false;
}
} // for loop ends
if ( found == true )
{ // if
cout << "The requested item: " << searchItem << " is found at location: " << storeLocation << endl;
cout << "in the array stored in memory" << endl;
} // if
else if ( found == false )
{ // else
cout << "The requested item cannot be found" << endl;
} // else
// part I - ends
return 0;
} // end of main