Can someone please explain this code

Amazon EY PwC Microsoft DBS Bank of America JPMorgan Chase Deloitte Publicis Sapient Flipkart Swiggy

Post Photo
like
Posting as :
works at
You are currently posting as works at

Reddit is a better place to ask this

like

Thanks for the info

1. Sorting the input array
2. Finding the minimum difference between two consecutive elements. Math.abs used so as to get positive value of difference if it is negative.
3. Finding those two consecutive elements whose difference is minimum,i.e., step 2 min difference.

likeuplifting

Thank you

.

Post Photo
like

Thx a lot

get the soln in leetcode .. I dont think the soln given is correct.
U can find soln in leetcode discussion .. sort the comment by rating.

like

Sure will do

Related Posts

like

Hi Folks, I have a query on H1B extension stamping in Canada for Indian nationality. Am I eligible to get my H1B extension stamping via Dropbox from Canada, or I will have to take it from India only. I will be in Canada on Visitor Visa. Thanks in advance.

Between JPMC and Visa what would be better option to go for a 5 year experienced person in frontend .

Any tips for Product security engineer roles for companies FAANG, Atlassian, Flipkart, Mastercard, Visa.
Any help would be appreciated, like how to start.
Coding, scripting, THM, HTB, plz share some insights.

like

So I am investing in a franchise and so need to save as much capital as I can. One of my wife’s closest friends is getting married in Florence this summer (just told us). We’d like to go, I’m not good with points, so wondering if anyone in here has a passion for getting the best deals via points who can help a fool out. I have 300K CSR, 100K AA, and 150K Bonvoy points to play with (though I’d like to not have to use all of them). TIA!

like

Does anyone have experience of being hired externally in Canada as a UK citizen where visa sponsorship would be required? Or is the only route internal transfer?

like

Hey, I am an industrial designer pivoted to salads during pandemic. I want to get back to design but consistent rejections have made it hard to plan my next move. I have come here on a student visa and now it’s about to get over and loosing my hope to get anywhere. Any suggestions?

like

How is the company Brillio? Got an opportunity for Project Manager with a 41% raise. How is the WLB, Job Security? my current org JPMChase has been giving good hikes for past 2 yrs, but not sure if that will continue also, im still an Associate, will be promoted in Jan to Sr Associate ,so not sure how long will it take to be VP or reach that compensation level offered. do we get a hike when we move to Sr Assoc from Assoc? JPMorgan Chase Wells Fargo Deloitte EY Infosys Bank of America Cognizant

like

Access to Priority Pass non-lounge experiences will no longer be part of the membership programme provided as part of your Capital One Venture X Visa Infinite benefits after January 2023. I did not expect them to start culling these benefits so early.

likefunny

If anyone needs a referral for an AMEX Platinum card, send me a private message for a referral link.

like

Any PwC fishes know if I can upgrade the standard corporate Amex to Gold or Platinum? When is the spend level where it becomes worth it?

like

Hello All,

Anybody who recently applied or received HSM visa for Netherlands ? Any idea on what is the average time taken from the applied date ?

Thanks

like

What tax return software do you use when you are working under OPT with F1 Visa, as a nonresident alien? Looking for recommendations. Thanks ☺️

like

Anyone aware of the base salary for a Business Ops Manager II - Chase Auto - Lease to Loan ??? (chase bank)

likehelpful

Can H1B employer be changed when person is in india. ?

Filed for H1B extension cap-exempt. Extension got approved. Not stamped yet. Now I am moving to jpmorgan. JPMC ready to send USA after one year if H1B can be utilised. Wanted to know if H1B employer can be changed in india (unstamped visa). ?

like

Can anyone share amex Bangalore location?

like

Hi all
I have an offer with a company and joining is 27th of Jun. I got offer from JP Morgan on 20th and they have given joining 4th of July. I am planning to join in JP Morgan. If left my previous offer, i will have only JP Morgan. Will I have any risk to keep JP Morgan offer alone? Once we get offer from JP Morgan, is ther any chance of cancel the offer? Please guide me JPMorgan Chase

My wife is a Software engineer - QA with 2 Yoe, now we are thinking to move to Canada, can someone please guide us on which 2 year course can she pick (for student visa), is data science related course a wise decision? Or how to find a QA related PG program.
Preferably in Victoria, British Columbia

More Posts

Best no annual fee credit cards to get points for travel?

like

After a bad day with this year’s complicated senior class, my brother sent me text and completely changed my day.

Post Photo
likeupliftinghelpfulfunny

Does anybody else think that the Wharton Slack & Discord groups are kinda quiet/inactive compared to admit groups from other schools?

like

Impetus technologies inc How are yearly hikes in Impetus?

like

Have all employees started working from office or hybrid @Ericsson??

I am a Family Nurse practitioner with years of clinical experience. I als have spent time working in: Quality Assurance for CMS surveys, Post Acute Care and Readmission prevention and teaching BSN programs. I would love to get into consulting in a WFH position. I have been working from home for 2 years and would like to stay home. Any leads would be appreciated.

like

Hello, anyone from Akamai technologies, Bangalore??
Need some info on the employee benefits (covid benefits).

Thank you.

like

Best marketing books/videos for a brand new advisor that is building their book from scratch?

like

Who knows of any Radiology Schools or Ultrasound Programs on the east coast that are not hospital based?

Do you ever have time for a mid-day nap? Should i be feeling guilty for taking one LOL

like

Anyone recently joined in August and September, did you guys have discussed goals and eligibility for year end hike.
Officially it will be there, but is your manager expecting to give any appraisal (hike) as it will be hardly a month before appraisal closure?

helpful

Anyone with experience in the short term rental space willing to connect?

I was in the market for a first time home in New York but the market and rates got too out of hand. Recently pivoted to a few out of state options for an STR and would love to learn from someone who's set one up.

Thanks!

like

What are some good PE firms in LA?

like

Do you think taking all of your leave (family, parental, sick, etc.) will impact your career progression? If so, why?

like

What are some good books that helped you with consulting? Looking for some good reads.

like

Anyone around this weekend for a virtual business case prep?

like
like

I might get roasted for asking such a basic question but - how much do you budget for eating out ($ amount or % of budget)?

Pre pandemic I was traveling 5 days a week and just used left over per diem on the one night I went out with friends at home. During covid I stayed home. Now that I’m fully vaccinated and are many of my friends they want to go out to eat/drink. During covid I moved from a LCOL to HCOL city so I’m experiencing delayed sticker shock at the prices. Any tips?

like

Anybody ever deal with Michael Page for recruiting? After speaking with one of their recruiters they send me a “candidate registration form” which asks me to fill out basic information but also (cont)

like

Bonjour à tous

like

Additional Posts in Tech India

Hi , would need suggestions on which one to go with
EPAM Systems : 38.5 LPA, all fixed
Forcepoint : 32 fixed + 3 variable
fynd : 36 fixed + 5.4 lac vested in 2 years Innovacer 27 fixed + 1 lac joining bonus

fynd and innovaccer has SDE2 and Forcepoint and epam has LEAD


YOE: 5.10
TC : 19

like

Hi Dolphins,
Which company is good to Join Swiss Re or Jade global?
Your response will be highly appreciated.
YOE- 4.3 ,CTC - 20

like

Can anyone tell about Solarwinds INC. (Bangalore), need to know more about the culture and work life.

Is ITC Infotech good company to join in terms of job security and opportunities?

like

Which companies have great work life balance?

like

Guys, Need help to unlock DM.

like

Hi Fishers,
I am writing here my two years of IT journey. And I need your suggestion.
Year1-started working in TCS as manual tester then got some opportunity there to update database. Salary -3.3 lpa
Year2-Changed job to Hexagon technology, here I am working as site support engineer for SPF and SDx. Salary -6.2lpa
Can I get good growth in another companies as a suppo engineer because I can see developers at my age making 20lpa+ . Now I need your feedback what will be good for me in the future.

like

Hi Fishes! I'm a backend developer looking to switch from a service based company to a product based organisation in Delhi NCR. Not that good in DSA(not much exp in solving leetcode questions) but I can solve array and string manipulation questions easily. I have a strong grasp on my tech stack as well.
I want to know with my experience and tech stack, what should be my salary expectations?
CTC: 12 LPA
YOE: 4.4 years
Tech Stack: Java, Spring Boot and Microservices
(1/2)

like

Hi All- What would be the designation comparison Deloite vs IBM

In IBM it's 6, 6A,6B, 7A, 7B, 8 what would be similar in Deloite!

like

Hi all,

I have offer from
Harman Connected Services and NTT DATA both almost same compensation and Chennai location.

Yoe -5
Skill - Java springboot microservices developer

Which company should I choose on basis of job security, projects, wlb and yearly appraisal??

like

When can we expect next hike or promotion in IBM, if currently getting 7B promotion? IBM

like

Hi, i have just joined Luxoft few days back. Only a joining call happened. HR told will get the logins in few days. Can you please suggest the Luxoft onboarding steps.

like

What are LLD questions usually like ? What is the expectations from them.

like

You intend to join JFrog? My serious suggestion. Don't. Just refrain.
Their treats can draw you in. It's not worth it..
If you're a person who likes being micromanaged. Go work at JFrog.
The toxic culture, absurd targets (sales team). Bangalore's managers / leadership team are terrible individuals. The business creates top-notch products. No idea about Israel and the US leadership. But in India, it's horrible. Contact individuals on LinkedIn who have previously worked at JFrog in India.

like

Offering LinkedIn premium for 6 months at 90% OFF just for today. Connect and message me.

funny

Best show you have watched in a while?

like

Hi , i had given 2 interviews in Deloitte USi for cloud data engineer CBO unit. My LWD is in 10 days. Last Friday an HR called for salary discussion. No updates after that, tried calling/ e-mailing but no response. Did not receive any LOI either. Any idea what this means? Can anyone help to follow up internally?

like

Can somebody please share important topics for Java Development profile for Infosys technical interview. YOE-2years. I will be very grateful.

like
like

Hello fishes, which company to choose

Walmart global tech
Cisco

Walmart is paying 2L more than cisco and tech stack is frontend (React)

In terms of career growth, learning opportunities and WLB which company is good? Also how is the job security in these companies?

Thanks for your suggestion.
YOE: 2

like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.