i tried it with only declaring and initializing the currsum variable with zero ,then the output is wrong then inside the second nested loop why i ha ...
i tried it with only declaring and initializing the currsum variable with zero ,then the output is wrong then inside the second nested loop why i ha ...
Please help me to resolve the issue of this.props.history.push('/') IS NOT WORKING in CLASS Component. As we do not have any scope of using history an ...
`public class first { public static void main(String args[]){ int arr[]={5,4,1,3,2}; i have done this problem by getting the smallest in terms of i ...
Actually I'm working on a project where I have a XML code And I want to do Digital Signature of that particular XML. Can anyone help me in that? O60\ ...
Insertion Sort is a simple sorting technique which was covered in previous challenges. Sometimes, arrays may be too large for us to wait around for in ...
The Question I have is : For a given two strings, 'str1' and 'str2', check whether they are a permutation of each other or not. Permutations of each o ...
I have recently shifted to a Linux environment and as a java programmer to code, I downloaded VScode in which I got many problems running and debuggin ...
For example if the given number n = 16 If it is power of 2 then the output should be true else false, i want the answer by using bit manipulation. ...
I was practising DSA questions. Given an array Arr[] that contains N integers (may be positive, negative or zero). Find the product of the maximum pr ...
Now, The Time Complexity of this program is coming out to be O(n) or Theta(n) But, what will be the Space Complexity and Auxilary space? For result ...
I wrote this method for remove in a doubly linked list, it works, but I'm not sure if it's correct overall. ...
problem: You are playing a game that contains multiple characters, and each of the characters has two main properties: attack and defense. You are giv ...
While finding time complexities I can find the time complexity of any loop but not able to proof or understand it mathematically for eg : for(i = 0 ; ...
class LinkedList { I think I am here mistaking but I am not guessing what mistake it is } The output is coming like this, i dont kn ...
Given n= 8, pn/ = [2, 5, -7, 8, -6, 4, 1, -9], k= 5. We can select the subarray [2, 5, -7, 8] with sum = 8 and size 4 which is less than k= 5.Hence, t ...
https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/ In this Leetcode question, I tried to do it without using the concept of a st ...
While looking up solutions for the Pascal's triangle problem which takes in the number of rows as input (int numRows), and outputs a List containing a ...
Here, if I do not consider time complexity and space complexity criteria in mind, I tried something. Here, largest represents the largest element in a ...
TL;DR... how can I create a DSA signature using a PEM private key file using .Net Framework 4.5.2 I apologise up front... this is all completely new ...
when i use an rsa pem string the follow code can work fine, generate to rsa public key object and regenerate to rsa pem string when i use an dsa ...