For finding LCM, we need to use the gcd function that Dart provides : int gcd(int other); LCM can be calculated as follows: int getLCM(int a, int b) { return (a * b) ~/ gcd(a, b); } Here is the complete code : Output : LCM of 10 and 25 is 50
Continue reading Flutter Least Common Multiple (LCM)
In this post, we will cover AWS Certified Solution Architect Associate Exam Questions. The following set of questions is to help you test your understanding before appearing for the AWS solution architect associate exam. This is no way a replacement for practical experience. Q1 : Which of the following is NOT an AWS Compute …
Continue reading 20+ AWS Certified Solution Architect Associate Exam QuestionsUsing ngIf to conditionally display app.component.ts app.component.html Using ngIf with custom objects fruit.ts app.component.ts app.compoenent.html
Continue reading Angular ngIf exampleIn this article, we will see difference between PathParam and QueryParam and how to decide whether to use PathParam vs QueryParam in rest api design. Diff between PathParam and QueryParam Path params are part of the url where as query parameters are added after the ? mark symbol and separated from other query parameters …
Continue reading When to use PathParam and when to use QueryParam'javac' is not recognized as an internal or external command, operable program or batch file This error signifies that the PATH variable isn’t set properly. How to fix javac not recognized error Find the correct path where you installed the JDK. it looks like this: C:\Program Files\Java\jdkxxxx\bin\ Start-menu search for “environment variable” to open …
Continue reading javac not recognized as an internal or external command