Comments for Ritambhara Technologies https://demo.ritambhara.in Coding / System Design Interviews Wed, 15 Feb 2023 09:02:13 +0000 hourly 1 https://wordpress.org/?v=6.7.2 Comment on Find error in the C++ code by Crusher https://demo.ritambhara.in/find-error-in-the-c-code/#comment-7155 Wed, 15 Feb 2023 09:02:13 +0000 http://www.ritambhara.in/?p=443#comment-7155 # include
Using namespace std;
main()
{
int a,b;
cin>>a>>b;
if(a=b)
cout<<”a is equal to b”;
cout<<”endl”;
if else (a!=b)
Cout<<”a is not equal to b”<<endl;
}

]]>
Comment on Find error in the C++ code by Abhi https://demo.ritambhara.in/find-error-in-the-c-code/#comment-7087 Sun, 29 Jan 2023 13:29:49 +0000 http://www.ritambhara.in/?p=443#comment-7087 #include
using namespace std;
int main()
{
cout <> num;
copy= num;
while (num>0)
{
r= num%10;
rev= rev*10+r;
num= num/10;
}
if(copy==rev)
cout<<"the number is palindrome"
else
cout<<"the number is not palindrome"
return 0;
}

]]>
Comment on Divide & Conquer Approach to find a^n by Vipin https://demo.ritambhara.in/divide-conquer-approach-to-find-an/#comment-7049 Mon, 02 Jan 2023 14:39:36 +0000 http://www.ritambhara.in/?p=401#comment-7049 In reply to Yash.

yes, It’s one(1)

]]>
Comment on Find error in the C++ code by BlackHat https://demo.ritambhara.in/find-error-in-the-c-code/#comment-7042 Tue, 27 Dec 2022 10:18:00 +0000 http://www.ritambhara.in/?p=443#comment-7042 #include
#include
using namespace std;

int main() {
int number;
for (int i = 1; i <= 6; i++) {
cout << "Value of variable i is: " << i << endl;
}
return 0;
}

]]>
Comment on Find error in the C++ code by syed kamran shah https://demo.ritambhara.in/find-error-in-the-c-code/#comment-7033 Tue, 13 Dec 2022 17:34:56 +0000 http://www.ritambhara.in/?p=443#comment-7033 #include<iostream
Using namespace Std;
int main(){
int number;
for (int i=0;i<=6;i++)
{
cout<<"Value of the variable is :"<<number;
return 0;
}

]]>
Comment on Print all words in a Trie data structure by ahmed https://demo.ritambhara.in/print-all-words-in-a-trie-data-structure/#comment-7031 Fri, 09 Dec 2022 12:00:57 +0000 http://www.ritambhara.in/?p=8096#comment-7031 In reply to amir_pourya.

so what is better than this code

]]>
Comment on Array implementation of Stack by ty https://demo.ritambhara.in/array-implementation-of-stack/#comment-7024 Tue, 06 Dec 2022 15:19:16 +0000 http://www.ritambhara.in/?p=2647#comment-7024 khankir 6ele bara asol ans ta tor bap likhbe gudir bata?

]]>
Comment on Non-recursive solution to tower of hanoi by Sayantan patra https://demo.ritambhara.in/non-recursive-solution-to-tower-of-hanoi/#comment-6983 Mon, 21 Nov 2022 05:43:46 +0000 http://www.ritambhara.in/?p=1008#comment-6983 Easiest and fastest way

]]>
Comment on Checking if a number is fibonacci by ss https://demo.ritambhara.in/checking-if-a-number-is-fibonacci/#comment-6970 Fri, 11 Nov 2022 09:11:52 +0000 http://www.ritambhara.in/?p=177#comment-6970 yes

]]>
Comment on Check if number is a power of 2 by Vithesh https://demo.ritambhara.in/check-if-number-is-a-power-of-2/#comment-6958 Tue, 01 Nov 2022 10:49:02 +0000 http://www.ritambhara.in/?p=362#comment-6958 In reply to Anonymous.

its valid for all numbers
if its not then just reply that number here

]]>