If someone is getting access to docs let me know before asking because you can't see some data
Docs link is in description
Docs link is in description
Sunday i will take test depending upon your response only without response no tests nothing
https://interview.leetcode.com/interview/detail/9v5GyT/ To minimize technical difficulties during the interview, please use a computer with a camera and microphone. Also, update to the latest version of Chrome.
Java Hyd Team
https://interview.leetcode.com/interview/detail/9v5GyT/ To minimize technical difficulties during the interview, please use a computer with a camera and microphone. Also, update to the latest version of Chrome.
One question is from MySQL by mistake you can avoid that question
Java Hyd Team
Do you guys need good Lpa or 3lpa is enough if yes ping us so that we can refer you for good package in next 10-15 day's
Out of 141 people 41 people voted for salary more than 3lpa ( good package) and you guy's are not joining for interview what you guy's are expecting
Java Hyd Team pinned ยซhttps://interview.leetcode.com/interview/detail/9v5GyT/ To minimize technical difficulties during the interview, please use a computer with a camera and microphone. Also, update to the latest version of Chrome.ยป
package com.Aman;import java.util.Scanner;public class Staircase { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Input: n = "); int n = sc.nextInt(); sc.close(); System.out.println("Output: " + countWays(n)); }nth stair static int countWays(int n){ if(n == 1) return 1; if (n == 2) return 2; return countWays(n - 1) + countWays(n - 2); }}public class CountSubstrings {
public static int countSubstringsWithKDistinctChars(String str, int k) {
int count = 0;
int n = str.length();
for (int i = 0; i < n; i++) {
for (int j = i; j < n; j++) {
if (countDistinctChars(str.substring(i, j + 1)) == k)
count++;
}
}
return count;
}
public static int countDistinctChars(String str) {
int[] count = new int[256];
int distinctCount = 0;
for (int i = 0; i < str.length(); i++) {
if (count[str.charAt(i)] == 0)
distinctCount++;
count[str.charAt(i)]++;
}
return distinctCount;
}
public static void main(String[] args) {
String str = "abc";
int k = 2;
System.out.println("Number of substrings with exactly " + k + " distinct characters in " + str + " is "
+ countSubstringsWithKDistinctChars(str, k));
}
}
public static int countSubstringsWithKDistinctChars(String str, int k) {
int count = 0;
int n = str.length();
for (int i = 0; i < n; i++) {
for (int j = i; j < n; j++) {
if (countDistinctChars(str.substring(i, j + 1)) == k)
count++;
}
}
return count;
}
public static int countDistinctChars(String str) {
int[] count = new int[256];
int distinctCount = 0;
for (int i = 0; i < str.length(); i++) {
if (count[str.charAt(i)] == 0)
distinctCount++;
count[str.charAt(i)]++;
}
return distinctCount;
}
public static void main(String[] args) {
String str = "abc";
int k = 2;
System.out.println("Number of substrings with exactly " + k + " distinct characters in " + str + " is "
+ countSubstringsWithKDistinctChars(str, k));
}
}
What Is A Single Page Application?
A Single Page Application (SPA) is a web application that is designed to be displayed as a single, static page.
This approach makes the application more user-friendly and easier to navigate, as users can see the entire application at once.
With a traditional web application, users are redirected to a new page every time they make a change to their data, which can be frustrating if they want to edit information in multiple places.
In contrast, SPA-based applications are completely focused on one thing at a time, allowing users to work through each step in a consistent manner.
A Single Page Application (SPA) is a web application that is designed to be displayed as a single, static page.
This approach makes the application more user-friendly and easier to navigate, as users can see the entire application at once.
With a traditional web application, users are redirected to a new page every time they make a change to their data, which can be frustrating if they want to edit information in multiple places.
In contrast, SPA-based applications are completely focused on one thing at a time, allowing users to work through each step in a consistent manner.
๐1