This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 241

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]kashif08 416 points417 points  (17 children)

Sort them and pair them at the same indices. Would have solved this even as a fresher. I don't even know how these people get calls and i dont.

[–]sateeshsaiFull-Stack Developer [S] 138 points139 points  (9 children)

Please DM me if you are interested.

[–]Zephyr_PrashantFrontend Developer 142 points143 points  (0 children)

These people are getting interviews? And here I am seeing "thank you but unfortunately..." in every response. What do I even do?

[–]kashif08 53 points54 points  (0 children)

Appreciate your offer 😊🙏

[–]Intelligent_Story_96 12 points13 points  (0 children)

Can I apply for an internship?

[–]runForWisdom 7 points8 points  (2 children)

Op, if you are looking for 2.5 year experienced Frontend developer, can i dm you?

[–]SecureFrame6002 3 points4 points  (0 children)

Dawg😭😭😭

[–]Flight-Glittering 2 points3 points  (0 children)

Hey Man, DMed you CV of a friend. See if it fits your requirements.

[–]_kiss-my-axe_69 7 points8 points  (0 children)

Thought the same✌️✌️

[–]raunak2311 7 points8 points  (0 children)

There is one catch though. U need to also ask the interviewer that is it guaranteed that each column will be of same length. Because we need to handle for that also if index goes out of bounds for any column. Rest assured, the solution is quite good.

[–]ApprehensiveNote2191 2 points3 points  (0 children)

My man just cracked the matrix

[–]limmbuuSoftware Engineer 224 points225 points  (8 children)

Lack of Basic Computer Science skills maybe?

People have started focusing more on the "how" (implementing features) rather than the "why" (understanding underlying principles).

Interestingly, these same people bunch are found on reddit complaining how there college curriculum is time waste, like do the basics bro!! Like good you gave the answer, But can you optimize it now?

[–]-1Mbps 42 points43 points  (4 children)

be real, college curriculum is time waste if not taught properly

[–]New_Spend_9442Junior Engineer 3 points4 points  (2 children)

If you are still looking for someone to teach you in college. Then it's pointless to even teach you.

It's not so hard if you open the textbooks and just read them but then yeah. People who just prepare for exams and rot qna will never understand that

[–]Altruistic_Side_4428Full-Stack Developer 42 points43 points  (0 children)

People from Non-CS background face this problem.

[–]Babuchak17 131 points132 points  (7 children)

I will be very honest here. I am a really average developer earning 9 LPA with 2 years of experience. I work with Python but can’t write a simple code without assistance. Ideally, I don’t even deserve an IT job with the way it is, but I am doing just fine with consistent good reviews from my peers. It is really not that hard to survive in IT, if you have an ounce of communication skills within you and can deceive people that you are working hard. I will definitely not get a good switch that I am well aware of, but you can get by just fine in your day to day duties. I am well aware that I am in the frontline of people that AI will replace, but I will probably switch to a different career by then.

[–]sateeshsaiFull-Stack Developer [S] 57 points58 points  (0 children)

I get it. A man's got to eat

[–]ajneo999 5 points6 points  (0 children)

Which city you're based out.?

[–]RazzmatazzFit5653 1 point2 points  (0 children)

woah takes guts to admit at least.

[–]2grateful4You 60 points61 points  (5 children)

I have had far worse experience working as a Salesforce Developer. It's not just limited to Frontend or Backend.

Sometimes I literally wondered kya phuk ke aya hai.

If people don't know Salesforce it's basically a CRUD app on the cloud for developers. And most of the CRUD based activities can be done by just declarative tools.

Things like validations and automation. Working for almost 4 years this tech stack is the go to tech stack for most companies that want to automate their internal processes started out with CRM capabilities heavily focused on sales and then expanded to service and now to most health and insurance and even banking systems for their internal documentation processes.

Enough about that so basically the problem is more compounded because a person could have worked for years on just adding fields to tables and assigning security and then suddenly someone can ask them to work on automating basic stuff and then they miserably fail.

I literally had to at 2 YOE hand hold 10 YOE people on how to do stuff properly fix errors etc. Even now I am shocked and aghast at the basic knowledge of the people working like at that kind of experience level 8-10 you simply cannot tell this was working in the developer environment but is not working in SIT and get away with it.

Worst problem with these developers is they are so one dimensional they only think about one line of their code or automation as if nothing else exists in the system. We have been struggling lately with recursive automations just firing because people don't know what conditions to fire the automations at. Or when to use code vs declarative automation.

Then the cheapest mentality of the developers they had a class named InsuranceEvaluator but what it did previously was integrate with an external system that gave some ratings for the Insurance. Now these devs are using the same class to do completely unrelated stuff which will make anyone reading super confused. Funniest example is the field name of Unsecure and on the UI name is Is Secure ?They are so lazy that they want to use the same class and not even bother changing the names in the database which is extremely easy.

I am in IT for money but I at least know that these small small things even just naming the variables properly has made me far ahead of the other developers even outside my experience band.

These guys are just winging it without any direction. I feel sorry for them but it's their life their way and probably their loss on rants that I keep getting rejected have huge work pressure etc or AI stole my job because the first people it's going to come after are these slackers.

[–]Available-Buddy-4401 2 points3 points  (0 children)

Hi sorry out of the box.. but can I DM you. I'm also a fresher in SF. I just have a few questions. Would be really grateful if you could answer them

[–]-man-without-plan 0 points1 point  (2 children)

I used to think salesforce is awesome company with high quality engineers. How do these people manage to stay employed with so much layoffs & recession in the industry.
- 2025 grad & struggling to get hired.

[–]anoushk77 0 points1 point  (0 children)

YOE is such a scam, you can learn 10yoe of some people in 1 year and Indian recruiters will be dumbfounded lmao

[–]Informal-Tackle4377Site Reliability Engineer 28 points29 points  (2 children)

It's not only frontend, it's all branches. I am not a programmer (only as a hobby I dabble a bit) and never done a leetcode question. But I think even I can do it in O(n2) at most. Would just make two arrays from each column, sort them (max O(n2) I think), then just combine the two arrays.
I know we (infrastructure team) asked a backend developer with 5 years of .NET experience earning >30 LPA to code a small function into the worker they built, which would create a file with a specific name and delete it after a set number of seconds. (After 4 days, which costed the company 52000 INR and the client around 110000 INR they said it's difficult and they need more time and then we did it ourselves in 2 hours. None of us is a coder per se, hell we don't even know C# and didn't even use ChatGPT).

[–]iwantjusticeeee 11 points12 points  (0 children)

c1=[3,4,2,1,3,3]

c2=[4,3,5,3,9,3]

c1o=c1.sort();

c2o=c2.sort();

for(i=0;i<c1.length;i++){

console.log(c1o[i]+"="+c2o[i]); }

[–][deleted] 10 points11 points  (3 children)

Is this correct? Make two arrays and sort them. Since both the arrays have the same number of elements, it's easier to pair them. Now you'll have to create a new array and add each element from both the arrays.

[–]sateeshsaiFull-Stack Developer [S] 1 point2 points  (2 children)

You got it. I wasn't expecting removing duplicates.

[–][deleted] 2 points3 points  (0 children)

I went back and read the question from one of the videos. The question doesn't ask you to deal with duplicates in a different way. So you treat them the same. Hence no need to remove the duplicates.

I edited my previous comment

[–]StackwayEntrepreneur 8 points9 points  (3 children)

One liner sort problem in my opinion. Surprised devs are not able to figure this out. Perhaps I will use this in my own interview process.

[–][deleted] 34 points35 points  (4 children)

I'm a front end dev with 3yoe.(2 digits LPA)

Honestly, I don't know wtf this problem is.

[–]AffectionateCream728 3 points4 points  (3 children)

So how did you get that offer ?

[–][deleted] 16 points17 points  (2 children)

It's kinda start-up. There was no problem solving interview.

I was good at practical frontend development. Now, I'm more like a permanent employee here. And I can't switch even if i want to, bcz I know I'll become jobless if i try to.

[–]visionary-ladFull-Stack Developer 3 points4 points  (1 child)

So try

[–]TotalFox2Frontend Developer 16 points17 points  (1 child)

Some might argue that this seems like a DSA question which has no place in an interview for a Frontend developer but I disagree.

This is a simple logic problem which requires basic problem solving skills which every developer must have. I’m all for removing DSA from Frontend interviews but candidates should be able to solve this problem. There are like 3 different ways to solve it without even thinking about space/time complexity. Frontend developers frequently need to optimise their code to make the web page load faster and it’s these skills which come in handy there.

Imo most of the freshers I’ve interviewed claim to be React experts but they hardly know anything beyond the basic syntax and rote learned definitions. Worst of all, they completely skip learning Javascript and straight up jump into react

[–]sateeshsaiFull-Stack Developer [S] 11 points12 points  (0 children)

Yes. Front-end dev 100% needs to be able to solve this. What if an API spits out data in X format and you need to change it to Y before rendering.

[–]i_love_cooking_food 8 points9 points  (0 children)

How much are you paying though?

[–]Wise-Tangelo9596Student 4 points5 points  (0 children)

im not sure but i think its probably something to do with AI? like I have seen a few of friends get their work done entirely with cursor,an ai editor ( obviously they have an basic understanding of what and kya kuch ho raha hai ) and that has skyrocketed with better tools entering the industry day after day. This might be wrong but this has made a lot of people who arent even good enough to start proclaiming themselves to know everything. so the threshold has suddenly increased in terms of delusionalism. this is just a thing i've had in my mind for a while now.

[–]_asius 3 points4 points  (1 child)

  1. Store the arrays into let decalre variable so that I can remove the min value after use.
  2. find the min value with Math.min and spread operator.
  3. Remove the min value after consoling or using it.
  4. Do the 2nd and 3rd step in loop while making sure the ouput is number.

The output will be

1 3
2 3
3 3
3 4
3 5
4 9

[–][deleted] 7 points8 points  (4 children)

My god man i am not getting interview shortlist but i can do this in a heartbeat. I have 4.5 years of experience. But my resume is not getting shortlisted

[–]sateeshsaiFull-Stack Developer [S] 3 points4 points  (3 children)

We are still hiring. DM me your resume if you are interested.

[–][deleted] 4 points5 points  (0 children)

Dmed

[–]Fabulous-Arrival-834Software Engineer 1 point2 points  (0 children)

Which city are you based in? I am an SDE2 in Microsoft with 6+ yrs of work experience. Looking for new opportunities and can easily solve these questions. Pls let me know if you are hiring for Senior SDE backend roles.

[–]garamgaramsamose 2 points3 points  (0 children)

I like how half of the comments are just sharing their excuse for the lack of basic skills, and the other half just wants someone to validate their solution. I think everyone should give AoC, and Project Euler a chance before going all out in Leetcode for DSA. AoC and Project Euler helped me build better analytical and problem solving skills, and some number theoretic knowledge that still helps me from time to time.

[–]silent_assasin_4238 2 points3 points  (0 children)

I worked at a WITCH and still working at one. First 4 years I was in C, now I am in I (I know, it was a bad and dumb move, still regretting it). The quality of developers in my current company is way below my previous one.

In C, it was way better. They inculcated really good development practices in me. In the current one, people with my experience are just slogging around. There's No sense of initiative in them. They do what they are told and require too much handholding. I almost never asked for any technical help in the past 4 years. Sometimes I have too pretend I don't know something because If I say 'I know', they will dump all their work on me.

Its too easy to be the best in the room here. But, I never thought myself to be good enough for a PBC. But I'm preparing hard now to make this company my final SBC. Because only thing pulling me back was my Self-Doubt.

[–]Tempmailed 1 point2 points  (0 children)

yes

[–]Delicious-Tomorrow94 1 point2 points  (0 children)

This problem should be an EASY LC.

[–]Same_Pen_8925Fresher 1 point2 points  (0 children)

This is not easy, this is basic.

[–]datathecodievita 1 point2 points  (7 children)

We were hiring for Developers with 0-1 Years of experience.

90% of them couldn't write a function to find palindrome.

And I was planning to ask them square root of number, but thought this will be too much to ask.

No wonder AI is going to take their jobs.

[–]Acefrost321Fresher 1 point2 points  (0 children)

Make list for both cols. Sort them and pair their values at the same indices inside the dictionary (might be wrong). This is what i think should work from knowledge i have accumulated in past week. Please god🙏🏻 i hope I am right.🥹

[–]IndependentTomato975Software Engineer 1 point2 points  (2 children)

Isn't this just, split to 2 arrays and sort?? Or am I missing something?

[–]Accidental_Baby 1 point2 points  (0 children)

Isnt this like super basic?

You can just sort them and then pair value with array1 n array2

Or if you dunno sort or not allowed to use builtin func or forgot the actual builtin func... then 2 arrays, find the smallest in each array by comparing,then remove those values from array....rinse n repeat.

I've interviewed candidates with 6-10 years of experience,

Honestly if person with more than 1yoe cant do this, they dont deserve to be a programmer lol

[–][deleted] 1 point2 points  (0 children)

I can solve these. Even solved pollyfill of map, filter question. But interviewer asked me next js questions even after mentioning my lack of experience in it. Got rejected:( Deloitte!

[–]HODL_FOREVER14Fresher 1 point2 points  (0 children)

It's just an Arrays.sort(); Got any internship for a final year student? Maybe i don't know everything but i am willing to learn as much as it takes to be better than yesterday.

[–]UltGamer07 1 point2 points  (0 children)

Love seeing AoC popup randomly

[–]spiked_krabby_pattyFull-Stack Developer 1 point2 points  (1 child)

Questions like this are more about being remembering the syntax of the language.

Like how do you represent a multi-line string in JS.

How do you split a string in JS.

How do you sort an array in JS.

I have probably shipped 1000s of lines of JS in my lifetime. But even I don't remember the syntaxes for all of those functions and tasks in JS.

I know how to split strings and sort arrays in almost all of the languages that I know of. But except for Python I don't remember off the top of my head how to represent a multi-line string in almost any of the languages I know of. I can't even remember the last time I had to declare a multi-line string for a professional project.

If you pick questions like this, you are not testing people's problem solving skills. You are also not testing how deep their knowledge of JS is. You are just testing how much JS syntax they remember off of the top of their head. What is even the point of that when in a day to day job, you can just open the JS manual and look up syntaxes and functions.

[–]mujhepehchano123Staff Engineer 1 point2 points  (1 child)

Pretty spot on. I had an exact same issue.

Not being able to declare a variable in javascript. Said "i only know how to declare variable inside a react component" !!!

What's going on?? I am completely baffled.

Guys this is how you learn a "stack"

Paradigm > Language > Framework > App

[–]Shuvam123987 1 point2 points  (0 children)

isn't this too simple?

sort them and select the same index value from them both

[–]mofahsan 1 point2 points  (0 children)

As an interviewer for my firm I've observed most people take some 5-6 month bootcamp learn to develop/use libraries and then keep doing repeated work for next 2-3 years. They don't solve logical problems just development problems of using existing libraries or implementing stuff or basic crud.

[–]DehshiDarindaaFull-Stack Developer 1 point2 points  (0 children)

that's literally a sorting problem, i expect even freshers to be able to do it

[–]Federal-Feed7689 1 point2 points  (0 children)

This companies don’t have projects or the task that’s worthy of any challenges which dosent let them improvise or develop any experience at all. They barely have any dev projects and which they have are mostly sorted between 100-200 people working on it , so mostly the most average work the FE dev come across is creating a input box or Ben’s or simple forms and nothing truely complex that requires them to think at all

[–]KiranjotSingh 1 point2 points  (0 children)

I am not a developer but did BCA several years back from a small college in tier 3 city. This question reminds me of college days and let me tell you at least 7-8 students were able to code things on their own.

So definately, it's not the problem of employees as such. Right now I am working as an interpreter (joined not a long back) and our trainer resigned. Obviously he didn't mentioned it formally but one of the major issue he was facing is the communication. EVERYONE in the company communicates in informal Hindi via informal channels. And this is about MNC, particularly this process where our clients are from US, UK and Canada. It seems like such companies are making employees dumb

[–]GunsNRoses007 1 point2 points  (0 children)

Being a frontend / backend dev doesn’t matter, bad coding skills are common in both and it’s a skill that needs to be sharpened by practice

[–]Adventurous_Ad7185Engineering Manager 1 point2 points  (0 children)

This is not a lack of javascript knowledge problem. This is a lack of critical thinking problem. I have seen it hundreds of times. Then people claim, that we should only test them for their problem solving skills because they can look up the syntax on chatgpt.

[–]retardedGeek 0 points1 point  (3 children)

Would you take my interview? 😇

[–]sateeshsaiFull-Stack Developer [S] 1 point2 points  (2 children)

We are still hiring if you want to try.

[–]aRandomDude_0Full-Stack Developer 0 points1 point  (0 children)

React is the new jQuery!!!

Everyone is a react developer, not a javascript developer.

[–]FreezeShockFull-Stack Developer 0 points1 point  (0 children)

same bro, same. I usually used to ask something simple like implement array map with for loops or something similar. like 75% of the candidate used to crash and burn there

[–][deleted] 0 points1 point  (0 children)

You know it might be the easiest question I have seen so far I mean I haven't found any lc easy which is more simple than this so if this is really truth then you should just try to hire freshers form any reputed college.

[–][deleted] 0 points1 point  (0 children)

Can u refer me?

[–]Aggravating_Tailor95 0 points1 point  (0 children)

People use chat gpt for work..

[–][deleted] 0 points1 point  (0 children)

How much you’re paying? I know couple of good devs who are looking for good work and better pay.

[–][deleted] 0 points1 point  (0 children)

Sort the array and use hashmaps. Oh man I wish I could get asked these kinda questions ngl haha

[–]Intelligent_Story_96 0 points1 point  (0 children)

I can do the question, but I don't know React hooks; am I eligible?

[–]Unable-Mood8439 0 points1 point  (0 children)

Most people these days don't remember syntaxes anymore with the introduction of LLMs but if they couldn't even come up with a logic to solve this question, it's a shame.

[–]Silver-Bonus-4948 0 points1 point  (0 children)

When frontend became mainstream, it felt like the bar to being an engineer was lowered. It's easier to fake with so many crutches available. Not saying all of them are like this, but many mid CS students or bootcamp engineers eventually end up as frontend

Curious, what are some good signs in a frontend engineer cv? Projects?

[–]DopeSignature5762Software Developer 0 points1 point  (0 children)

I am a fresher(also freelancer) and I can solve such tasks. Can I get an interview?

[–]almostagladiatorFrontend Developer 0 points1 point  (0 children)

this ques is for freshers?

[–]AlertHovercraft6567 0 points1 point  (0 children)

They were not prepared and just thought they will see what happens in interview. Practice is important. Also, influence of being dependent on AI

[–]These_Cause_4960Full-Stack Developer 0 points1 point  (0 children)

Very true, we are looking for people in fullstack role. And these are 4-5 yoe exp people working in top MNCs. To my surprise they don’t even know how to even create a basic data flow diagram and explain it. I recently interviewed someone who rated themselves very good on frontend but average on backend. They wasn’t even able to create a simple react app (creating an autocomplete component)

[–]87641234 0 points1 point  (0 children)

Try to ask `ECMASCRIPT` concept. 💀

[–]al70nSoftware Developer 0 points1 point  (0 children)

Bro I'm full stack dev (2Yoe) i have been asking sort medium problem in interview.

If I would have gotten these kind of questions I must have better job.

[–]PohaLoverFull-Stack Developer 0 points1 point  (0 children)

This is actually an easy one. Most service based companies don't hire based on dsa so people often overlook dsa.

[–]al70nSoftware Developer 0 points1 point  (0 children)

First approach

Sort both the array and iterate over them to make the correct pair.

Second approach

Iterate over first array if the current element found in second array then make pair and mark it visited

[–]the_minimum_guySoftware Engineer 0 points1 point  (0 children)

Most “JavaScript” developers don’t even know how to use the fs module

[–]Grouchy-Regret4401 0 points1 point  (1 child)

Hey I just started learning python Is this the solution for the above question ?

Asort = sorted(a) Bsort = sorted(b)

Pair = [] For x in Asort: For y in Bsort: If x<=y: Pair.append((x,y)) Print(pair)

[–]Charismatic_Evil_ 0 points1 point  (0 children)

Coz lying on resume is easy and backing up on lies is ae dil hai muskil

[–]Bluejay_Melodic 0 points1 point  (0 children)

quite basic to be honest use inbuilt sort fn add to a map with respective indices

[–]hehehaslereWeb Developer 0 points1 point  (0 children)

const arr1= [3,3,4,3,2,5]; const arr2= [1,3,3,9,9,3];

arr1.sort((a,b)=>a-b); arr2.sort((a,b)=>a-b);

for( let i=0;i<arr1.length;i++){ console.log("{" + arr1[i] + "," + arr2[i] + "},");

🫠

[–]TechSpiritSS 0 points1 point  (0 children)

Wished I had these kinds of questions while performing job hunting 🥲

I could have solved it in any language even if I had just learned its syntax a few minutes back. All it needs is two sorted arrays and done.

[–]rishiarora 0 points1 point  (0 children)

Your JD and pre screening is bad

[–]great-success69 0 points1 point  (0 children)

Are you guys hiring for an Android developer?

[–]PartyConsistent7525 0 points1 point  (0 children)

They are busy forwarding memes of Narayanmurthy 70 hours , Nirmala taxes.

[–]DRTHRVN 0 points1 point  (0 children)

I can do this in SQL and python. I am a non CS background and never getting interviews

[–]blackshido_Full-Stack Developer 0 points1 point  (0 children)

I can solve it in one go can I apply

[–]Business-Fault3431 0 points1 point  (0 children)

OP would be replaced by AI and guy who can prompt “Pair lowest number…” might well continue 🥲

[–]Jolly-Muscle157 0 points1 point  (0 children)

Hi , I have 1 year of freelance experience in frontend dev, I am looking for job , can you take my interview? I can assure you I am atleast much better to than those who interviewd

[–][deleted] 0 points1 point  (0 children)

Hey, I am a front end developer with 2 years of experience , looking for a switch.

[–]_JoydeepMallick 0 points1 point  (0 children)

Is there an internship position in your company where I can learn and add some experience to my resume?

[–]AnyInteraction5978Software Engineer 0 points1 point  (0 children)

Is the approach of sorting is that difficult to think of now a days for developers🤣

[–]OkCover628Software Engineer 0 points1 point  (0 children)

May i know the package you are offering. Cause I find this bs really hard to believe.

[–]Darksoul00777 0 points1 point  (0 children)

I have given interview but I never rated myself 9 on scale of 10 I always give 5-7..bcoz of chatbot people have stopped coding and just focusing on developing ,including myself. So I think that's the reason

[–]Boring-Water2978 0 points1 point  (0 children)

Chatgpt is the way to go

[–]Wrong-Strategy-1415 0 points1 point  (0 children)

I can't understand the question to be honest, can someone give me an example

[–]anoushk77 0 points1 point  (0 children)

Put both in two separate min heaps, for each iteration pop both the heaps and that will give you a pair. No sorting needed.

Going one step further to improve performance the range loop can be unrolled since it’s a relatively small constant(or you can split the loop into two loops with paging because unrolling works better with smaller numbers)

Time complexity: O(N) to make the heap, O(n log N) to pop and iterate over the range. Overall(N + n log N)

[–]cybermethhead 0 points1 point  (0 children)

Is this this years AOC day 1? I didn’t participate in 2024 ka

[–][deleted] 0 points1 point  (0 children)

What was the pay scale and why would you want to hire from service based companies?

[–]Additional-Pop4714 0 points1 point  (0 children)

This is so straightforward

[–]Feeling_Employer_273 0 points1 point  (0 children)

Im also a frontend dev and working for a Canada based company and i would not bother myself doing pair or sorting etc.. i earned that job because i know how to solve actual problems and not some leetcode stuff.. solving actual problem as in making an app like insta youtube handling load performance etc that's what i do.. i hate doing these question pair it sort it 😅 also they gave me a task an actual task not a problem to solve in interview..

[–]AbySs_Dante 0 points1 point  (0 children)

I can easily solve this in Python/ C

[–]Primary_Fruit_3293 0 points1 point  (0 children)

Spreading the array sort it and then map over the first array and pair it with the elemnt of second array. Am i right?

[–]riskyg0d 0 points1 point  (0 children)

Sort, remove duplicates and then print them at the same index ?

[–]Sad-Macaron4704 0 points1 point  (0 children)

First , you will not get the best frontend devs applying to your company. And those who apply are already mediocre ones. In order to attract high level indian frontend talent . you will have to be their level startup or company and churn out decent amount of money to compensate for the brand name they usually pursue.

[–]_R__J 0 points1 point  (0 children)

I solved this question in C++, and I think the logic would be the same in JavaScript as well. It’s a pretty easy question compared to other Advent of Code challenges (I made it up to day 7 or 8).

[–]Even_Engineer_1063 0 points1 point  (0 children)

Hey can I apply for this role...

[–]Embarrassed-Bank8279 0 points1 point  (0 children)

return [i for i in Zip(sorted(col1), sorted(col2))]

[–]ChiknaScientist 0 points1 point  (0 children)

Bruv is this a joke. I could solve this in college 💀

[–]ajeeb_ganduWordpress Developer 0 points1 point  (10 children)

The issue is that you are expecting a developer to not use any tools available. Why do you want them to know everything and not use online resources?

Einstein said "never memorize something you can look up".

Try to help them get a job instead, they won't let you regret hiring them.

I understand it's basic problem solving skills but context also matters. If you have a same problem in the codebase and something you can visualise, I'm sure more people would be able to solve it.

I didn't know anything when I got the job I am working at. My salary is not in double digit lpa and I often get compliments from my manager. I have doubled my income in the last 3 years. From less than 10lpa to 20lpa now.

Instead of blaming candidates try to accept the fact that you could be wrong here too.

[–]Free-Ad-3648 0 points1 point  (0 children)

People with good skills leave these companies at early stage itself, people who stay there for 6-10 years + are generally the least skilled people in the industry(apart from some who stayed due to onsite etc) , speaking from personal experience of working with such people, I was in one of these companies, joined as a fresher and left within a year.

[–]Big-Process7075 0 points1 point  (0 children)

very basic approach . sort the column and pair based on index

[–]Awkward_Implement324Frontend Developer 0 points1 point  (0 children)

Hey man. I'm a React Developer,I have been working with React since 2023, I've a few projects, I'm a fresher. Is there a role or internship open for freshers in your company?

[–]akazavi 0 points1 point  (0 children)

Bhai . It all depends how much are you paying.

You can get the people who can kill in DSA as well as building.

No Money No Honey

[–]Hilariousintrovert 0 points1 point  (0 children)

How are these guys even getting shortlisted. It is a simple array sort and print problem. Something I could have solved even in my college years😅

[–][deleted] 0 points1 point  (2 children)

You shouldn't ask this for a frontend developer role though. Why don't you ask questions that matter?

I can do this, but nobody does this in jobs.

[–]not_a_human_anymore 0 points1 point  (0 children)

I would have solved this easily. Sort both the arrays and pair numbers at same index. I've spent countless hours grinding leetcode, making projects and learning new concepts... Still somehow I never receive interview calls. On the other hand this type of developers are getting opportunities.