Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Anil Jha

Anil Jha

Community Learner
Share
183Questions
177Answers
231.9KViews on questions

Explain the working of java BMI calculator.

You run all the computations in the main method. It's not a good practice. One method should do one focused thing. That's why I'd recommend to create a separate method for "step" of your computation: converting measurements (something like double poundsToKilograms(double weightInPounds) computing the BMI given the…

Java

Answered Oct 6, 2022 · 1.3K Views Read answer →

How can I implement a LinkedList iterator in Java?

Regarding the implementation of LinkedList iterator - Not really a Java format. 1) public Object Next(); ---> next(); Don't use capitals for functions. 2) if (isEmpty()) { return (null); } brackets should be on the same line with function head; no need in () after return; 3) boolean isNext(){ if (next == null) return…

Java

Answered Oct 6, 2022 · 1.2K Views Read answer →

Explain 2048 bit rsa.

a big integer, and a "2048-bit key" is a key such that the big integer is larger than 22047 but smaller than 22048. 256-bit is about SSL. In SSL, the server key is used only to transmit a random 256-bit key (that one does not have mathematical structure, it is just a bunch of bits); roughly speaking, the client…

Cyber Security

Answered Sep 27, 2022 · 791 Views Read answer →

When we encrypt message with private key it becomes what?

The answer to your question - when we encrypt message with private key it becomes what is - If you encrypt a message with your private key, it can be read (decrypted) by anyone who has your public key. Since the public key is intended to be - of course - public, the message is no longer private. The message can be now…

Cyber Security

Answered Sep 26, 2022 · 530 Views Read answer →

Why do methods defined as testmethod do not support web service callouts?

The answer to your question - why methods defined as testmethod do not support web service callouts is - You need to call Test.setMock(...) in your test class once you've implemented the required interfaces to prevent this particular error message. You shouldn't need to use Test.isRunningTest() to test your call outs…

Salesforce

Answered Sep 22, 2022 · 7.9K Views Read answer →

How is double DQN better than DQN?

In Q-learning there is what is known as a maximization bias. That is because the update target is r+γmaxaQ(s,a). If you slightly overestimate your Q-value then this error gets compounded (there is a nice example in the Sutton and Barto book that illustrates this). The idea behind tabular double Q-learning is to have…

Artificial intelligence

Answered May 19, 2022 · 1.1K Views Read answer →

Why is the transposition table used in only 17% of nodes?

I don't think that's necessarily a strange number. It's impossible for anyone to really tell you whether that 17% is "correct" or not without reproducing it, which would require much more info (basically would have to know every single tiny detail of your implementation to be able to reproduce). Some things to…

Artificial intelligence

Answered May 19, 2022 · 853 Views Read answer →

Explain the space complexity of interative deepening a*?

The space complexity of these search algorithms is calculated by looking at the largest possible number of nodes that you may need to save in the frontier during the search. Iterative deepening search (IDS) is a search algorithm that iteratively uses depth-first search (DFS), which has a space complexity of O(bm),…

Artificial intelligence

Answered May 16, 2022 · 1.4K Views Read answer →

How are VAE GAN different from each other?

GANs generally produce better photo-realistic images but can be difficult to work with. Conversely, VAEs are easier to train but don’t usually give the best results. I recommend picking VAEs if you don’t have a lot of time to experiment with GANs and photorealism isn’t paramount. There are exceptions such as Google’s…

Artificial intelligence

Answered May 13, 2022 · 8 Views Read answer →

How are VAE GAN different from each other?

GANs generally produce better photo-realistic images but can be difficult to work with. Conversely, VAEs are easier to train but don’t usually give the best results. I recommend picking VAEs if you don’t have a lot of time to experiment with GANs and photorealism isn’t paramount. There are exceptions such as Google’s…

Artificial intelligence

Answered May 13, 2022 · 1.3K Views Read answer →

More members from the Cyber Security community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.