Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website ๐Ÿ˜Š
Still working on it ๐Ÿ˜Š
Download Telegram
/*Output

Displaying list : Employee[id=1, name=sam] Employee[id=2, name=amy] Employee[id=3, name=wil] Employee[id=4, name=cat] Employee[id=1, name=sam] Employee[id=2, name=amy] null
element at index 1 = Employee[id=2, name=amy]
element removed from index 1 = Employee[id=2, name=amy]

let's display list again after removal at index 1
Displaying list : Employee[id=1, name=sam] Employee[id=3, name=wil] Employee[id=4, name=cat] Employee[id=1, name=sam] Employee[id=2, name=amy] null

*/
๐”๐›๐ž๐ซ" ๐ˆ๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ ๐๐ฎ๐ž๐ฌ๐ญ๐ข๐จ๐ง๐ฌ - ๐Ÿ๐ŸŽ๐Ÿ๐Ÿ

Based on Uber's job portal, they are hiring for multiple SDE1 and SDE2 positions right now. Here is a list of questions that have been asked by Uber in the last few months.

The compilation provided here is public information that is scattered around on multiple sites. You shouldn't try to use these as preparation material, but rather use these for self-assessment.

๐—–๐—ผ๐—ป๐˜€๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—”๐—น๐—ด๐—ผ๐—ฟ๐—ถ๐˜๐—ต๐—บ๐˜€

1.) Split String => https://lnkd.in/eTb6VDmC

2.) Bin packing problem => https://lnkd.in/eXZKX3Sv

๐—–๐—ผ๐—บ๐—ฏ๐—ถ๐—ป๐—ฎ๐˜๐—ผ๐—ฟ๐—ถ๐—ฐ๐˜€

1.) Sum of smallest elements in distinct sets => https://lnkd.in/exm7jDTm

๐——๐˜†๐—ป๐—ฎ๐—บ๐—ถ๐—ฐ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ด

1.) Kth Step Sequence => https://lnkd.in/ertBsik7

2.) Collecting coins [Combinatorics involved] => https://lnkd.in/eqM-zDyi

๐—š๐—ฟ๐—ฎ๐—ฝ๐—ต

1.) Turn on all systems [Minimum spanning tree] => https://lnkd.in/ekj627TZ

2.) Turning Pages [DFS / Backtracking] => https://lnkd.in/eHsfBsM5

๐—ง๐—ฟ๐—ฒ๐—ฒ

1.) Delete Edge to minimize the difference in subtree sum => https://lnkd.in/edba9e8T

๐—•๐—ถ๐˜๐˜€๐—ฒ๐˜

1.) Queries on Binary String [Queues can be used] => https://lnkd.in/edZRjGck

๐—›๐—ฎ๐˜€๐—ต๐—บ๐—ฎ๐—ฝ

1.) Insert Delete Get Random => https://lnkd.in/eRk-hSKW

2.) Implement a hash map => https://lnkd.in/eznHKki3

๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ๐˜€

1.) Implement a queue with two stacks => https://lnkd.in/ebJbDced

๐—•๐—ถ๐—ป๐—ฎ๐—ฟ๐˜† ๐—ฆ๐—ฒ๐—ฎ๐—ฟ๐—ฐ๐—ต

1.) Index of a rotation point in an array => https://lnkd.in/e2KQs-Mq
I hope you all completed banking apps
Send the codes we can use as a reference
Hey, join my group on magicpin within the next 23 hours to 70% off up to Rs.400 on Food Vouchers Coupon code will be revealed on group completion.! There are only 49 slots left, so click here now: http://magp.in/cGccH
amanrashm use this promo code to join
Participate Now https://www.credit-suisse.com/codingchallenge

amanrashm

use this promo code to join
Everyone must come to classes
<!DOCTYPE HTML>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Global Banking ..</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function ctck()
{
var sds = document.getElementById("dum");
}
</script>

</head>

<body>

<div id="top_links">


<div id="header">
<h1>Online Banking System<span class="style1"></span></h1>
<h1>RajBank<span class="style1"></span></h1>
<h2>Your Professional Banking Partner</h2>
<A href="index.html"><IMG SRC="RajBankLogo2.jpg" alt="Business"width="100" height="60"></IMG></A>
</div>

<div id="navigation">
<ul>
<li><a href="createacc.jsp">NEW ACCOUNT</a></li>
<li><a href="balance1.jsp">BALANCE</a></li>
<li><a href="deposit1.jsp">DEPOSIT</a></li>
<li><a href="withdraw1.jsp">WITHDRAW</a></li>
<li><a href="transfer1.jsp">TRANSFER</a></li>
<li><a href="closeac1.jsp">CLOSE A/C</a></li>
<li><a href="logout.jsp">LOGOUT</a></li>
</ul>
</div>



<table style="width:897px; background:#FFFFFF; margin:0 auto;">
<tr >
<td width="300" valign="top" style="border-right:#666666 1px dotted;">
<div id="services"><h1>Services</h1><br>
<ul>
<li><a href="#">NetBanking</a></li>
<li><a href="#">Loan</a></li>
<li><a href="#">Credit Card</a></li>
</ul>

</div>
</td>

<td width="1200" valign="top">

<%
%>
<table><%
boolean status=false;
String num=request.getParameter("accountno");
int accountno=Integer.parseInt(num);
String username=request.getParameter("username");
String password=request.getParameter("password");
String ssn=(String)session.getAttribute("ssn");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con1=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps1=con1.prepareStatement("Select * from customer where userid='"+username+"' and password='"+password+"' and ssn='"+ssn+"'");
ResultSet rs1=ps1.executeQuery();
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con2=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps2=con2.prepareStatement("Select * from new_account where account_no="+accountno+"");
ResultSet rs2=ps2.executeQuery();
if(rs1.next()&&rs2.next()){
status=true;
}

//if(status==true){
// out.print("Welcome " + username);
try {
if(status==true){
out.print("Welcome " + username);
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps=con.prepareStatement("Select * from NEW_ACCOUNT where account_no=?");
ps.setInt(1,accountno);
ResultSet rs=ps.executeQuery();

out.print("<table align='left' cellspacing='5' cellpadding='5'>");
out.print("<tr><th>USER ID</th><th>ACCOUNT NO</th><th>ACCOUNT TYPE</th><th>AMOUNT</th><th>SSN</th></tr>");
while(rs.next()){
int accountno1=rs.getInt(1);
session.setAttribute("accountno",accountno1);

System.out.print(accountno);

out.print("<tr>");
out.print("<td>" +username+ "</td>");
out.print("<td>" + rs.getInt(1) + "</td>");
out.print("<td>" + rs.getString(2) + "</td>");
out.print("<td>" + rs.getInt(3) + "</td>");
out.print("<td>" +ssn+ "</td>");

out.print("</tr>");

}
out.print("</table>");

Random r=new Random();
int tid=r.nextInt(123456789);
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con3=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps3=con3.prepareStatement("insert into transaction values(?)");
ps3.setInt(1,tid);
int
status3=ps3.executeUpdate();
System.out.println(status3);
}
else{
out.print("Please check your username and Password");
request.setAttribute("balance","Please check your username and Password");
%>
<jsp:forward page="balance1.jsp"></jsp:forward>
<%
}
}catch (Exception e) {
e.printStackTrace();
}

//}

//}
%></table><%
%>


</table>


<%@ page import="java.sql.*"%>
<%@ page import="java.io.*" %>
<%@ page import="javax.servlet.*"%>
<%@ page import="java.util.*"%>
balance.jsp
<!DOCTYPE HTML>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Global Banking ..</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function ctck()
{
var sds = document.getElementById("dum");
}
</script>

</head>

<body>

<div id="top_links">


<div id="header">
<h1>Online Banking System<span class="style1"></span></h1>
<h1>RajBank<span class="style1"></span></h1>
<h2>Your Professional Banking Partner</h2>
<A href="index.html"><IMG SRC="images/home1.gif"></IMG></A>
</div>

<div id="navigation">
<ul>
<li><a href="createacc.jsp">NEW ACCOUNT</a></li>
<li><a href="balance1.jsp">BALANCE</a></li>
<li><a href="deposit1.jsp">DEPOSIT</a></li>
<li><a href="withdraw1.jsp">WITHDRAW</a></li>
<li><a href="transfer1.jsp">TRANSFER</a></li>
<li><a href="closeac1.jsp">CLOSE A/C</a></li>
<li><a href="logout.jsp">LOGOUT</a></li>
</ul>
</div>



<table style="width:897px; background:#FFFFFF; margin:0 auto;">
<tr >
<td width="300" valign="top" style="border-right:#666666 1px dotted;">
<div id="services"><h1>Services</h1><br>
<ul>
<li><a href="#">NetBanking</a></li>
<li><a href="#">Loan</a></li>
<li><a href="#">Credit Card</a></li>
</ul>

</div>
</td>

<td width="1200" valign="top">

<%
%>
<table><%
boolean status=false;
long accountno=Long.parseLong(request.getParameter("accountno"));
//int num=Integer.parseInt(num);
String username=request.getParameter("username");
String password=request.getParameter("password");
String ssn=(String)session.getAttribute("ssn");
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con1=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps1=con1.prepareStatement("Select * from customer where userid='"+username+"' and password='"+password+"' and ssn='"+ssn+"'");
ResultSet rs1=ps1.executeQuery();
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con2=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps2=con2.prepareStatement("Select * from new_account where account_no="+accountno+"");
ResultSet rs2=ps2.executeQuery();
if(rs1.next()&&rs2.next()){
status=true;
}

//if(status==true){
// out.print("Welcome " + username);
try {
if(status==true){
out.print("Welcome " + username);
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps=con.prepareStatement("Select * from NEW_ACCOUNT where account_no=?");
ps.setLong(1,accountno);
ResultSet rs=ps.executeQuery();

out.print("<table align='left' cellspacing='5' cellpadding='5'>");
out.print("<tr><th>USER ID</th><th>ACCOUNT NO</th><th>ACCOUNT TYPE</th><th>AMOUNT</th><th>SSN</th></tr>");
while(rs.next()){
int accountno1=rs.getInt(1);
session.setAttribute("accountno",accountno1);

out.print(accountno);

out.print("<tr>");
out.print("<td>" +username+ "</td>");
out.print("<td>" + rs.getInt(1) + "</td>");
out.print("<td>" + rs.getString(2) + "</td>");
out.print("<td>" + rs.getInt(3) + "</td>");
out.print("<td>" +ssn+ "</td>");

out.print("</tr>");

}
out.print("</table>");

Random r=new Random();
int tid=r.nextInt(123456789);
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con3=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Amanrash","Amanrash");
PreparedStatement ps3=con3.prepareStatement("insert into transaction values(?)");
ps3.setInt(1,tid);
int status3=ps3.executeUpdate();
out.println(status3);
}
else{
out.print("Please check
your username and Password");
request.setAttribute("balance","Please check your username and Password");
%>
<jsp:forward page="balance1.jsp"></jsp:forward>
<%
}
}catch (Exception e) {
e.printStackTrace();
}

//}

//}
%></table><%
%>


</table>


<%@ page import="java.sql.*"%>
<%@ page import="java.io.*" %>
<%@ page import="javax.servlet.*"%>
<%@ page import="java.util.*"%>
balance1.jsp