| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:1b9a2153-a166-34e0-568f-fb8eab59e26c |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 9B66:1169D7:4AB99C:6477DD:6A580374 |
| html-safe-nonce | 8e56b0df1736071fa164c02308e4f910ae7c55ffa9b739536a3a731e1abfc48f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjY2OjExNjlENzo0QUI5OUM6NjQ3N0REOjZBNTgwMzc0IiwidmlzaXRvcl9pZCI6Ijc1OTE2ODUzODQxNzYxNDExNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 70880a66f16537fec0742920bda194b63986a47f33d6e75df8d5a679d856a64b |
| hovercard-subject-tag | repository:129251918 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Akshayprmar/coding-Question |
| twitter:image | https://opengraph.githubassets.com/d0da6c64ed8295a116340310334234f6b1d3521266a2bf59f9dcb6c9bcfc2eca/Akshayprmar/coding-Question |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0da6c64ed8295a116340310334234f6b1d3521266a2bf59f9dcb6c9bcfc2eca/Akshayprmar/coding-Question |
| og:image:alt | Contribute to Akshayprmar/coding-Question development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-cache |
| go-import | github.com/Akshayprmar/coding-Question git https://github.com/Akshayprmar/coding-Question.git |
| octolytics-dimension-user_id | 30464870 |
| octolytics-dimension-user_login | Akshayprmar |
| octolytics-dimension-repository_id | 129251918 |
| octolytics-dimension-repository_nwo | Akshayprmar/coding-Question |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 129251918 |
| octolytics-dimension-repository_network_root_nwo | Akshayprmar/coding-Question |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/Akshayprmar/coding-Question#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAkshayprmar%2Fcoding-Question |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAkshayprmar%2Fcoding-Question |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=Akshayprmar%2Fcoding-Question |
| Reload | https://github.com/Akshayprmar/coding-Question |
| Reload | https://github.com/Akshayprmar/coding-Question |
| Reload | https://github.com/Akshayprmar/coding-Question |
|
Akshayprmar
| https://github.com/Akshayprmar |
| coding-Question | https://github.com/Akshayprmar/coding-Question |
|
Notifications
| https://github.com/login?return_to=%2FAkshayprmar%2Fcoding-Question |
|
Fork
0
| https://github.com/login?return_to=%2FAkshayprmar%2Fcoding-Question |
|
Star
2
| https://github.com/login?return_to=%2FAkshayprmar%2Fcoding-Question |
|
Code
| https://github.com/Akshayprmar/coding-Question |
|
Issues
0
| https://github.com/Akshayprmar/coding-Question/issues |
|
Pull requests
0
| https://github.com/Akshayprmar/coding-Question/pulls |
|
Actions
| https://github.com/Akshayprmar/coding-Question/actions |
|
Projects
| https://github.com/Akshayprmar/coding-Question/projects |
|
Security and quality
0
| https://github.com/Akshayprmar/coding-Question/security |
|
Insights
| https://github.com/Akshayprmar/coding-Question/pulse |
|
Code
| https://github.com/Akshayprmar/coding-Question |
|
Issues
| https://github.com/Akshayprmar/coding-Question/issues |
|
Pull requests
| https://github.com/Akshayprmar/coding-Question/pulls |
|
Actions
| https://github.com/Akshayprmar/coding-Question/actions |
|
Projects
| https://github.com/Akshayprmar/coding-Question/projects |
|
Security and quality
| https://github.com/Akshayprmar/coding-Question/security |
|
Insights
| https://github.com/Akshayprmar/coding-Question/pulse |
| https://github.com/Akshayprmar/coding-Question |
| Branches | https://github.com/Akshayprmar/coding-Question/branches |
| Tags | https://github.com/Akshayprmar/coding-Question/tags |
| https://github.com/Akshayprmar/coding-Question/branches |
| https://github.com/Akshayprmar/coding-Question/tags |
| 1 Commit | https://github.com/Akshayprmar/coding-Question/commits/master/ |
| https://github.com/Akshayprmar/coding-Question/commits/master/ |
| imgs | https://github.com/Akshayprmar/coding-Question/tree/master/imgs |
| imgs | https://github.com/Akshayprmar/coding-Question/tree/master/imgs |
| problem | https://github.com/Akshayprmar/coding-Question/tree/master/problem |
| problem | https://github.com/Akshayprmar/coding-Question/tree/master/problem |
| README.md | https://github.com/Akshayprmar/coding-Question/blob/master/README.md |
| README.md | https://github.com/Akshayprmar/coding-Question/blob/master/README.md |
| README | https://github.com/Akshayprmar/coding-Question |
| https://github.com/checkcheckzz/coding-questions |
| https://github.com/Akshayprmar/coding-Question#table-of-contents |
| Statement | https://github.com/Akshayprmar/coding-Question#stat |
| Problem | https://github.com/Akshayprmar/coding-Question#prob |
| Array | https://github.com/Akshayprmar/coding-Question#array |
| String | https://github.com/Akshayprmar/coding-Question#str |
| Linked List | https://github.com/Akshayprmar/coding-Question#list |
| Heap | https://github.com/Akshayprmar/coding-Question#heap |
| Tree | https://github.com/Akshayprmar/coding-Question#tree |
| Math | https://github.com/Akshayprmar/coding-Question#math |
| Bit Manipulation | https://github.com/Akshayprmar/coding-Question#bit |
| Graph | https://github.com/Akshayprmar/coding-Question#graph |
| Sortiing and Search | https://github.com/Akshayprmar/coding-Question#sortsearch |
| Dynamic Programming | https://github.com/Akshayprmar/coding-Question#dp |
| Other | https://github.com/Akshayprmar/coding-Question#other |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-statement |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-problem |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-array |
| Calculate the rotation distance for a sorted rotated array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Rotatearraydistance.cpp |
| Detect cycle in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Detect%20cycle%20in%20an%20array.cpp |
| Detect the longest cycle in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Detect%20the%20longest%20cycle%20in%20an%20array.cpp |
| Diagonal elements sum of a spiral matrix | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Diagonal%20elements%20sum%20of%20spiral%20matrix.cpp |
| Find a partition in an array to minimize the sum of two parts | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Partitionnarray.cpp |
| Find elements in the first array but not in the second one | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Find%20none%20duplicate%20elements%20in%20two%20arrays.cpp |
| Find the id with most posts | https://github.com/Akshayprmar/coding-Question/blob/master/problem/MostPosts.cpp |
| Find the largest sum of three integers in a row in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Find%20the%20largest%20sum.cpp |
| Find the maximal item a[i], such that a[i]=a[x]+a[y] in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Find%20the%20max%20item%20A%5Bi%5D,%20such%20that%20A%5Bi%5D=A%5Bx%5D+A%5By%5D.cpp |
| Find the minimal difference between two sorted arrays | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Find%20the%20minimal%20difference%20between%20two%20sorted%20arrays.cpp |
| Given an array a[i], build b[i] = a[0]a[1]…a[n-1]/a[i] | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Build%20b%5Bi%5D.cpp |
| Given an array and a number k, check if there exists an element arr[i] such that its duplicates lies in arr[i-k] and arr[i+k] | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Given%20an%20array%20and%20a%20number%20k.cpp |
| Given an array of size n, the array contains numbers in range from 0 to k-1 where k is a positive integer and k <= n. Find the maximum repeating number in this array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Find%20the%20maximum%20repeating%20number%20in%20this%20array.cpp |
Given an integer sequence, generate all sequences such that s1 < s2 >s3 < s4 >s5 | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Generate%20all%20sequences%20such%20that.cpp | |
| Given an unsigned integer array with size n, the sum of array equals a, calculate a number k such that the sum of array becomes b when all numbers in the array greater than k is replaced by k | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Replaced%20by%20k.cpp |
| Given three arrays, select each number a, b, c from each array to minimize max(a-b,b-c,c-a) | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Minimize%20max(a-b,b-c,c-a).cpp |
| Given two binary arrays A and B, i.e., containing only 0s and 1s each of size N. Find indices i, j such that sum of elements from i to j in both arrays is equal and j-i (i.e. the length of the set i,j) is the maximum possible value | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Longest%20subarray%20with%20equal%20sum.cpp |
| Length of first subarray that sums to zero in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Length%20of%20First%20continuous%20subarray%20that%20sums%20to%200.cpp |
| Length of shortest subarray with sum greater than s in in array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Length%20of%20shortest%20subarray%20with%20sum%20larger%20than%20S.cpp |
| Nearest greatest element in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Neargreatestelement.cpp |
| Print all K-complementary in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/K-complementary.cpp |
| Running average in a sliding window | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Running%20average%20in%20a%20sliding%20window.cpp |
| Stable two way partition | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Array/Stable%202%20way%20partition.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-string |
| Binary string matching | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/BinaryMatching.cpp |
| Check whether two strings match by insert or delete or replace one char | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Edit%20Distance%20one.cpp |
| Delete repeating strings | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Delete%20repeating%20strings.cpp |
| Find a vowel product sum of an ASCII string | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Vowel%20product.cpp |
| Find the first anagram of a given string in another string | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Firstanagram.cpp |
| Find the replace rule | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Find%20the%20replace%20rule.cpp |
| Generate all possible interleaves of two input strings | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Allinterleaves.cpp |
| Generate parentheses with different types | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/GenerateParentheseswithdiffkinds.cpp |
| Given a string, delete all char A,and double all char B | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/DeleteAdoubleB.cpp |
| Given a string, print out the chars with maximal number of consecutive counts | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Chars%20with%20maximal%20number%20of%20consecutive%20counts.cpp |
| Given a string s and a dictionary, find the word break way of the string with minimal number of words | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Minimalwordbreak.cpp |
| Given a string s, check whether it is k duplicates of a string t | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Kduplicates.cpp |
| Given k numbers, get a target with certain arithmetic operators | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Getanumber.cpp |
| Given string of digits, insert addition operator in between to make sum to be a value | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Makesum.cpp |
| Given two string arrays, sort the strings in first array according to the strings order in second one | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Sortfirstaccordingsecond.cpp |
| Isomorphic Strings | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Mapstring.cpp |
| Longest substring containing just two unique chars | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/LongestSubstring2uniquechars.cpp |
| Longest substring which appears more than once | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Longest%20substring%20which%20appears%20more%20than%20once.cpp |
| Longest substring which begins and ends with two unique chars | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/LongestSubstringbeginend2uniquechars.cpp |
| Name numbers | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Namenumbers.cpp |
| One-byte or two-byte encoding | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Onetwobyteencoding.cpp |
| Ordered minimum window substring | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Orderedminimumwindowsubstring.cpp |
| Remove comments | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Remove%20comments.cpp |
| Two Words | https://github.com/Akshayprmar/coding-Question/blob/master/problem/String/Twowords.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-linked-list |
| Insert a node into a cyclic Sorted List | https://github.com/Akshayprmar/coding-Question/blob/master/problem/LinkedList/Insert%20into%20a%20Cyclic%20Sorted%20List.cpp |
| List Level Sum | https://github.com/Akshayprmar/coding-Question/blob/master/problem/LinkedList/List%20level%20sum.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-heap |
| Kth maximal element of array c, where c[k]=a[i]+b[j], a, b are another two arrays | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Heap/Kth%20maximal%20element%20of%20sum%20of%20two%20arrays.cpp |
| Sliding Window Maximum | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Heap/Sliding%20Window%20Maximum.cpp |
| Two dimensional top k elements | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Heap/TwoDtopk.cpp |
| Water in a two dimensional histogram | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Heap/Waterin2dhistogram.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-tree |
| Binary tree Iterator | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Iterator%20for%20binary%20tree.cpp |
| Find the largest BST subtree in a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Find%20the%20largest%20BST%20sub%20tree%20in%20BT.cpp |
| Find the right most node in each level of binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Find%20the%20right%20most%20node%20in%20each%20level%20of%20a%20binary%20tree.cpp |
| Generate all binary trees according to preorder traversal | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Generatebts.cpp |
| Heapify a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Heapify%20a%20binary%20tree.cpp |
| Immediate right neighbor of given node (parent links, no root) in a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Immediate%20right%20neighbor.cpp |
| Implement getNextNode() | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Implement%20getNextNode().cpp |
| Longest distance between two nodes of a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Longest%20distance%20between%20two%20nodes.cpp |
| Maximal path sum of a n-way tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Maximalpathsum.cpp |
| PreInPostorder travel of a binary tree with stack | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/PreInPostorder%20travel%20of%20bT%20with%20stack.cpp |
| Printing all nodes at a given distance from a starting node in a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Printing%20all%20nodes.cpp |
| Second largest node in BST | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Second%20largest%20node%20in%20BST.cpp |
| SerializeDeSerialize a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/SerializeDeSerialize%20a%20binary%20tree.cpp |
| SerializeDeSerialize an arbitrary nodes tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/SerializeDeSerialize%20an%20arbitrary%20nodes%20tree.cpp |
| Shortest distance between two nodes of a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Shortest%20distance%20between%20two%20nodes.cpp |
| Statistical binary search tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Statistical%20binary%20search%20tree.cpp |
| Switch a binary tree to make equal | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Switch%20binary%20tree%20to%20make%20equal.cpp |
| Total weight of a subtree below this node in a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Totalweight.cpp |
| Vertical sum in a binary tree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Tree/Vertical%20sum%20in%20a%20binary%20tree.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-math |
| Angle between the hour and minute hands | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Angle%20between%20the%20hour%20and%20minute.cpp |
| Calculate (m^n)%(10^k) | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Calculate%20(m%5En)%25(10%5Ek).cpp |
| Change a m base number to a n base number | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/MbasetoNbase.cpp |
| Delete k digits from a number to get minimal number | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Delete%20k%20digits.cpp |
| Factorial digit sum | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Factorialdigitsum.cpp |
| Find all numbers less than N, such that n = a^3 + b^3 = c^3 + d^3 | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Specialnumber.cpp |
| Find k from 1~n such that k=a^2 +b^2 (a, b positive integer) | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Number%20k%3Da%5E2%20%2Bb%5E2.cpp |
| Find the LCM and GCD of two numbers | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Find%20the%20LCM%20and%20GCD%20of%20two%20numbers.cpp |
| Form a triangle | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Form%20a%20triangle.cpp |
| For some N, print all the solutions of AB = CD where A, B, C, D are all 1~N | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Print%20all%20the%20solutions.cpp |
| GetDecimal | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/GetDecimal.cpp |
| Get original number including digit 7 | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Get%20original%20number%20including%20digit%207.cpp |
| Given a list of integers of length n in the range of 1 to n-1, find the duplicate element (only one duplicate) | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Find%20the%20duplicate%20element.cpp |
| Given a positive integer N, print all combinations of non-negative integer sum to N | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Print%20all%20combinations.cpp |
| Happy Number | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Happy%20Number.cpp |
| Highest 1 position of binary expression | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Highest%201%20position%20of%20binary%20expression.cpp |
| Last digit of a^b | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Last%20digit%20of%20a%5Eb.cpp |
| Output true with probability 1/2^N given a function outputing true with probability 0.5 | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Output%20true.cpp |
| Print prime factors of a given number | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Primefactors.cpp |
| Read a line from a file randomly | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Readaline.cpp |
| Return the duplicate indexes with equal probability | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Math/Return%20the%20duplicate.cpp |
| Sieve of Eratosthenes algorithm | https://github.com/Akshayprmar/coding-Question/blob/master/problem/SieveofEratosthenes.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-bit-manipulation |
| Count the longest continuous 0 bits in an array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Bit/Count%20the%20longest%20continuous%20bit%200s.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-graph |
| Black white reverse board game | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Graph/Blackwhitereversegame.cpp |
| Catch that cow | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Graph/Catchcow.cpp |
| Check whether a graph exists | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Graph/Graph%20exists.cpp |
| How many carrots can the rabbit eat | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Graph/How%20many%20carrots%20can%20the%20rabbit%20eat.cpp |
| Travel a grid | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Graph/Traversalgrid.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-sorting-and-search |
| Find the first target in a sorted array with duplicates | https://github.com/Akshayprmar/coding-Question/blob/master/problem/SortingSearch/Find%201st%20one%20in%20large%20duplicated%20sorted%20array.cpp |
| Find the minimal number in a given left turned array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/SortingSearch/Minimalelementinleftsortedarray.cpp |
| Find the smallest missing number in a sorted array | https://github.com/Akshayprmar/coding-Question/blob/master/problem/SortingSearch/Smallestmissingnumber.cpp |
| Sorting | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Sorting.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-dynamic-programming |
| Harry potter in the maze | https://github.com/Akshayprmar/coding-Question/blob/master/problem/DynamicProgramming/Harryporterinmaze.cpp |
| Maximal path gain of two persons on board | https://github.com/Akshayprmar/coding-Question/blob/master/problem/DynamicProgramming/Maximalpathgain.cpp |
| Maximal production subarray | https://github.com/Akshayprmar/coding-Question/blob/master/problem/DynamicProgramming/Max%20production%20subarray.cpp |
| Merge stack of stones | https://github.com/Akshayprmar/coding-Question/blob/master/problem/DynamicProgramming/Mergestones.cpp |
| Minimal subset sum | https://github.com/Akshayprmar/coding-Question/blob/master/problem/DynamicProgramming/Minimal%20subset%20sum.cpp |
| ⬆ | https://github.com/Akshayprmar/coding-Question#toc |
| https://github.com/Akshayprmar/coding-Question#-other |
| Deep iterator | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Deepiterator.cpp |
| Design a structure which supports insert, delete and getRandom | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Design%20class%20support%20add%20delete%20and%20getRandom.cpp |
| Equation solution | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Equationsolution.cpp |
| Family relation | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Familyrelation.cpp |
| Group contact by email list | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Groupcontact.cpp |
| Implement iterator interface | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Interface.cpp |
| Implement malloc and free | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Implement%20malloc%20and%20free.cpp |
| Implement memmove and memcopy | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Implement%20memmove%20and%20memcopy.cpp |
| Matrix iterator | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Iterator%20for%20matrix.cpp |
| Number of online user | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Onlineuser.cpp |
| Present black and white graph with quadtree | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Quadtree.cpp |
| Racer score | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Racescore.cpp |
| Readk() to implement int read(int size,char* buffer) | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Readk().cpp |
| Skyline | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Skyline.cpp |
| Smart pointer | https://github.com/Akshayprmar/coding-Question/blob/master/problem/Smart%20pointer.cpp |
|
Readme
| https://github.com/Akshayprmar/coding-Question#readme-ov-file |
| Please reload this page | https://github.com/Akshayprmar/coding-Question |
|
Activity | https://github.com/Akshayprmar/coding-Question/activity |
|
0
forks | https://github.com/Akshayprmar/coding-Question/forks |
|
Report repository
| https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FAkshayprmar%2Fcoding-Question&report=Akshayprmar+%28user%29 |
| Releases | https://github.com/Akshayprmar/coding-Question/releases |
| Packages
0 | https://github.com/users/Akshayprmar/packages?repo_name=coding-Question |
| Please reload this page | https://github.com/Akshayprmar/coding-Question |
| Contributors | https://github.com/Akshayprmar/coding-Question/graphs/contributors |
| Please reload this page | https://github.com/Akshayprmar/coding-Question |
|
C++
100.0%
| https://github.com/Akshayprmar/coding-Question/search?l=c%2B%2B |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |