René's URL Explorer Experiment


Title: Boleyn salary (Python or cpp only) · Issue #116 · ArmanKumar21/python-cpp-html-programs-projects · GitHub

Open Graph Title: Boleyn salary (Python or cpp only) · Issue #116 · ArmanKumar21/python-cpp-html-programs-projects

X Title: Boleyn salary (Python or cpp only) · Issue #116 · ArmanKumar21/python-cpp-html-programs-projects

Description: Hey? Everyone... Help me with this problem. Boleyn Su runs a company called Acme. There are N employees in the company, and each one of them is represented by a unique employee id whose range lies in [1, N]. Being the head of company, Bo...

Open Graph Description: Hey? Everyone... Help me with this problem. Boleyn Su runs a company called Acme. There are N employees in the company, and each one of them is represented by a unique employee id whose range lies ...

X Description: Hey? Everyone... Help me with this problem. Boleyn Su runs a company called Acme. There are N employees in the company, and each one of them is represented by a unique employee id whose range lies ...

Opengraph URL: https://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Boleyn salary (Python or cpp only)","articleBody":"Hey? Everyone... Help me with this problem.\r\n\r\nBoleyn Su runs a company called Acme. There are N employees in the company, and each one of them is represented by a unique employee id whose range lies in [1, N]. Being the head of company, Boleyn's employee id is 1.\r\n\r\nEach employee, except Boleyn, has exactly one direct superior. This means that the hierarchial structure of the company is like a tree, where\r\n\r\nBoleyn, employee id 1, represents the root node.\r\nEach pair of employee is directly or indirectly connected to one another.\r\nThere is no cycle.\r\nLet's represent the salary by the array s = {s[1], s[2], s[3]..., s[N]}, where s[i] is the salary of the ith employee. Salary structure in the company is non-uniform. Even a subordinate may get a higher salary than her superior. Some of the employees in Acme are curious about who gets the kth lowest salary among her subordinates. Help them in solving their query.\r\n\r\nNote\r\n\r\n1st lowest salary is equivalent to lowest salary, 2nd lowest means lowest salary which is greater that 1st lowest salary, and so on.\r\nSalary of each employee is different.\r\nIt is not necessary that the people who are placed higher on hierarchy will have a greater salary than their subordinates.\r\nInput Format\r\nThe first line contains two space separated integers, N Q, where N is the number of employees in Acme, and Q is the number of queries.\r\nThen follows N-1 lines. Each of these lines contain two space separated integers, u p, where p is the superior of u. u and p are employees id.\r\nIn the next line there are N space separated integers, s[1] s[2] ... s[n], where s[i], i ∈ [1..N], is the salary of ith employee.\r\nThen, Q queries follow. Each query contains two space separated integers, v k. See output format for it's definition.\r\n\r\nOutput format\r\nFor the first query, print the id of employee who has the kth lowest salary among the subordinates of v.\r\nFor the subsequent queries, we need to find the kth lowest salary of the subordinates of v+d, where d is the answer of previous query.\r\n\r\nConstraints\r\n1 ≤ N ≤ 3*104\r\n1 ≤ Q ≤ 3*104\r\n1 ≤ s[ i ] ≤ 109, i ∈ [1..N]\r\ns[ i ]  ≠ s[ j ], 1 ≤ i \u003c j ≤ N\r\n1 ≤ u, p ≤ N, u ≠ p\r\n-N ≤ d ≤ N\r\nFor 1st query, 1 ≤ v ≤ N\r\nFor later queries, 1 ≤ v+d ≤ N\r\nFor each query, 1 ≤ K ≤ Number_of_subordinates\r\n\r\nSample Input\r\n\r\n8 7\r\n2 1\r\n3 2\r\n4 2\r\n7 4\r\n8 4\r\n5 1\r\n6 5\r\n70 40 60 80 10 20 30 50\r\n2 1\r\n-6 5\r\n-4 1\r\n-5 3\r\n2 1\r\n-5 4\r\n2 2\r\nSample Output\r\n\r\n7\r\n8\r\n7\r\n3\r\n6\r\n2\r\n8","author":{"url":"https://github.com/ArmanKumar21","@type":"Person","name":"ArmanKumar21"},"datePublished":"2022-10-15T13:49:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/116/python-cpp-html-programs-projects/issues/116"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7d6cb524-a8d2-54c9-7289-29c53d677858
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE120:F6370:68A0613:8E42520:69786450
html-safe-noncedf419fb407b88be9c34e7f0768c3a3c4231bf4733700dd995c5fb090ce2f8289
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTIwOkY2MzcwOjY4QTA2MTM6OEU0MjUyMDo2OTc4NjQ1MCIsInZpc2l0b3JfaWQiOiI3ODgyMzk0NDQ2MDY5MjYxMzkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac69e4f9ee1716f2ca752d7f263dfc6c6c2f50ed0a716771bb5795df26e19e1aa8
hovercard-subject-tagissue:1410173050
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ArmanKumar21/python-cpp-html-programs-projects/116/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a2ac7a97abd8c66e07ec2490fae89fd46ff1a825508249d2c38a3eb87483c505/ArmanKumar21/python-cpp-html-programs-projects/issues/116
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a2ac7a97abd8c66e07ec2490fae89fd46ff1a825508249d2c38a3eb87483c505/ArmanKumar21/python-cpp-html-programs-projects/issues/116
og:image:altHey? Everyone... Help me with this problem. Boleyn Su runs a company called Acme. There are N employees in the company, and each one of them is represented by a unique employee id whose range lies ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameArmanKumar21
hostnamegithub.com
expected-hostnamegithub.com
None2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50
turbo-cache-controlno-preview
go-importgithub.com/ArmanKumar21/python-cpp-html-programs-projects git https://github.com/ArmanKumar21/python-cpp-html-programs-projects.git
octolytics-dimension-user_id99328861
octolytics-dimension-user_loginArmanKumar21
octolytics-dimension-repository_id547871299
octolytics-dimension-repository_nwoArmanKumar21/python-cpp-html-programs-projects
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id547871299
octolytics-dimension-repository_network_root_nwoArmanKumar21/python-cpp-html-programs-projects
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release520b65a872113b919c1bbdb03834a50af15859fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FArmanKumar21%2Fpython-cpp-html-programs-projects%2Fissues%2F116
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FArmanKumar21%2Fpython-cpp-html-programs-projects%2Fissues%2F116
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ArmanKumar21%2Fpython-cpp-html-programs-projects
Reloadhttps://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116
Reloadhttps://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116
Reloadhttps://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116
ArmanKumar21 https://patch-diff.githubusercontent.com/ArmanKumar21
python-cpp-html-programs-projectshttps://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FArmanKumar21%2Fpython-cpp-html-programs-projects
Fork 66 https://patch-diff.githubusercontent.com/login?return_to=%2FArmanKumar21%2Fpython-cpp-html-programs-projects
Star 17 https://patch-diff.githubusercontent.com/login?return_to=%2FArmanKumar21%2Fpython-cpp-html-programs-projects
Code https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects
Issues 17 https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/issues
Pull requests 14 https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/pulls
Actions https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/actions
Projects 0 https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/projects
Security 0 https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/security
Insights https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/pulse
Code https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects
Issues https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/issues
Pull requests https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/pulls
Actions https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/actions
Projects https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/projects
Security https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/security
Insights https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116
Boleyn salary (Python or cpp only)https://patch-diff.githubusercontent.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116#top
https://patch-diff.githubusercontent.com/akashbiswas0
https://patch-diff.githubusercontent.com/aditya-agr
good first issueGood for newcomershttps://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
hacktoberfesthttps://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22hacktoberfest%22
hacktoberfest-acceptedhttps://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22hacktoberfest-accepted%22
hacktoberfest2023https://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22hacktoberfest2023%22
https://github.com/ArmanKumar21
https://github.com/ArmanKumar21
ArmanKumar21https://github.com/ArmanKumar21
on Oct 15, 2022https://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues/116#issue-1410173050
aditya-agrhttps://patch-diff.githubusercontent.com/aditya-agr
akashbiswas0https://patch-diff.githubusercontent.com/akashbiswas0
good first issueGood for newcomershttps://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
hacktoberfesthttps://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22hacktoberfest%22
hacktoberfest-acceptedhttps://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22hacktoberfest-accepted%22
hacktoberfest2023https://github.com/ArmanKumar21/python-cpp-html-programs-projects/issues?q=state%3Aopen%20label%3A%22hacktoberfest2023%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.