One question of sorting for a list of people belonging to different cities and states.

AnswerBot
2y

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If two people b...read more

Vishal Jaiswal
1mo
Is it sorting by state then city Or something harder.
Hillan Shaba
9mo
currently not working
Sort a list of people by their cities and states. Use a sorting algorithm like quicksort or mergesort. Create a custom comparator function that compares the...
sukhman
1y
process management,memory management, file systems management, device management and security and privacy.
Vijay Bairagi
1y
Hi
Anonymous
1y
Assemble to cities one-sided and State another side
Anonymous
1y
it in two parts. Let's also make the simplifying assumption (not stated in your question) that the Users table has only one entry per user per city.
Pankaj Singh
1y
Sorting and filtering are two tools that let you customize how you organize and view your data, making it more convenient to work with. In this lesson, you'll learn how to sort and filter records
Anonymous
1y
Clt find option via key board - enter any of deta regarding your - enter.
Anonymous
1y
Name of the person, Pincode.you can type the various pincode provided and you can find the places and details
Anonymous
1y
move to excel apply there welookup formula and you will get answer to ur Question .
Rajveer Malsariya
1y
it in two parts. Let's also make the simplifying assumption (not stated in your question) that the Users table has only one entry per user per city.
Anwaar Ahmed
1y
Go to excel put formula n filter it out..
Manikandan
1y
Sorting Data by State then City
Shiva k
1y
If u have data ready it's Very simple go to excel put formula n filter it out.
Anonymous
1y
then we have to identify blaming that.it is possible.
Akshay Aher
1y
If u have data ready it's Very simple go to excel put formula n filter it out.
S BALA MURUGAN
1y

Assemble to cities one-sided and State another side

Anonymous
1y

· Let ABCDE for persons assume PQRST different city/ state

· If A is from city P

· B is from city Q

· C is from city R

· D is from city S

· E is from city T

Assume depending on the alphapetical order of the...read more

SALMAN ANSARI
1y

If u have data ready it's Very simple go to excel put formula n filter it out.

Anonymous
1y

it in two parts. Let's also make the simplifying assumption (not stated in your question) that the Users table has only one entry per user per city.

Brijesh Kumar
1y

Some people live in the other cities and states are following .

Cities / states

Meerut / Uttar pardesh

Sonipat / Haryana

Surat / Gujrat

Shrinagar / Jammu and kashmir

Haridwar / uttarakhand

Dharmendra Yadav
1y

If u have data ready it's Very simple go to excel put formula n filter it out...

Abhishek Saini
1y

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If two people b...read more

poonam Chourasia
1y

If we have a data ready it's very simple go to excel put formula and filter it out.

Anonymous
1y

Access sample base & cities and there pincode number

NAVJOT Singh
1y

order sales data by calendar month so that you can produce a graph of sales performance.

Seelam Mahendra
1y

Name of the city and pin code

Hajirabanu
1y

If u have a data ready it's very simple go to excel put formu n filter it out.

Pamu sikumar
1y

Name of the city and pin code

KOWSALYA B
1y

This is really a two part question:

  1. What cities have more than one user located in them?

  2. What users live in that subset of cities?

Let's answer it in two parts. Let's also make the simplifying assumption...read more

Manishek Singh
1y

SELECT id, name, city

FROM persons

JOIN (SELECT city

FROM persons

GROUP BY city HAVING count(*) > 1) AS cities

USING (city);

Anonymous
1y

My Answer is

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If ...read more

Anonymous
1y

Sorting alphabetically (AtoZ or Z to A) by value ( largest to smallest or smallest to largest) by day of the week ( Monday, Tuesday, Wednesday, Thursday, Friday........) Or by month names ( Jan,Feb......read more

Airish Kathleen Del Pilar
1y

My Answer is

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If...read more

Anonymous
1y

India is home to a vast array of cities, each with its own unique culture and history. From the bustling metropolises of Mumbai and Delhi to the ancient cities of Varanasi and Jaipur

Arvind Kushwaha
1y

If u have data ready it's Very simple go to excel put formula n filter it out

Lalitha Kiran
1y

People name, state pincode or city pincode or any proof

Anonymous
1y

If u have data ready it's Very simple go to excel put formula n filter it out.

Anonymous
1y

Area pincode and state pincode

Anonymous
1y

Making a list for all people and than short by function list.short([name of people] )

Adarsh
1y

Sort a list of people by their cities and states.

Use a sorting algorithm like quicksort or mergesort.

Create a custom comparator function that compares the city and state of each person.

If two people b...read more

Anonymous
1y

Excel put formula and filter it out it we can list the people

Ankit Kumar 28
1y

it's simply fo to exel put formula n then after filter it out

Rohit Panwar
1y

Filter the State or cities in alphabet order so that we can sort the list of people beloning to the correct state of cities

Rajesh Ratilal Chacha
1y

its simple fo to excel put formula n filter it out

Bhatt saurav
2y

If u have data ready it's Very simple go to excel put formula n filter it out.

Hitesh Bhatt
2y

If u have data ready it's Very simple go to excel put formula n filter it out.

Sangaiah Sivakumar
2y

Filter the State or cities in alphabet order so that we can sort the list of people beloning to the correct state of cities

Dhanunjay Kurva
2y

Input:

Person 1: Name - John, City - New York, State - New York

Person 2: Name - Mary, City - Los Angeles, State - California

Person 3: Name - Sarah, City - New York, State - New York

Person 4: Name - Mic...read more

Select
Add answer anonymously...

Capgemini Software Engineer interview questions & answers

A Software Engineer was asked 1w agoQ. How do you communicate between Microservices?
A Software Engineer was asked 1mo agoQ. Given a string, determine if it is a palindrome, considering only alphanumeric c...read more
A Software Engineer was asked 1mo agoQ. What is the difference between local and global variables?

Popular interview questions of Software Engineer

A Software Engineer was asked 1mo agoQ1. Given a string, determine if it is a palindrome, considering only alphanumeric c...read more
A Software Engineer was asked 1mo agoQ2. What is the difference between local and global variables?
A Software Engineer was asked 1mo agoQ3. Briefly describe the C language.

Top HR questions asked in Capgemini Software Engineer

A Software Engineer was asked 7mo agoQ1. What was your role in your previous project?
A Software Engineer was asked 8mo agoQ2. What are you good at?
A Software Engineer was asked 8mo agoQ3. Where do you see yourself in five years?
Capgemini Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits