No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, Please help me with this problem, im reading algorithms i've seen a problem called "Coin Change" the algorithm located here: [url]http://www.algorithmist.com/index.php/Coin_Change[/url] i have problem in implementation in C++, can anyone please help me with the base case. I have no idea how to fill the array with base cases. … |
|
hi can anyone help me with my code, im trying to write a bigInt multiply function but this function got some bugs(it prints additional zero at the left side) input: 3 2 output 06 and ... [code] #include <cstring> #include <iostream> using namespace std; const int mmax = 10000; char … |
|
hi guys is it timeconsuming to use memset instead of for? i mean suppose we have an array of int int prime[200000]; we use memeset(prime, 200000, 0, sizeof(prime)) also we can use for(i = 0; i < 200000; i++) prime[i] = 0; |
|
Hi, I want to solve a problem( to be honest its my homework ) given two string, the print the permutation in ordered form. Example: Please enter the first string:> abc Please enter the second string:> mn Results will be: abcmn abmnc amnbc mnabc mabcn manbc mabnc ambnc ambcn abmcn … |
|
Hi, can anyone help me with this program. the program inputs a string and replace the first char with the second one. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 200 int main(void) { char myString[MAX]; char getCh; char setCh; int i = 0; printf("Please enter the string: "); gets(myString); … |