ALGORITHM AND CODE

MY WAY TO UNDERSTAND ALGO AND DS

Tuesday, 30 June 2015

NEXT PERMUTATION


NEXT PERMUTATION

Q. Implement the next permutation, which rearranges numbers into the numerically next greater permutation of numbers.If such arrangement is not possible, it must be rearranged as the lowest possible order ie, sorted in an ascending order.The replacement must be in-place, do not allocate extra memory.

Examples:
1,2,3 --> 1,3,2
3,2,1 -->1,2,3
1,1,5 -->1,5,1




View Ramesh Chandra's profile on LinkedIn

Ramesh Chandra
Posted by Unknown at 04:27 1 comment:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, 29 June 2015

Largest Number




Posted by Unknown at 06:04 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Median of Two Sorted Array




Posted by Unknown at 02:29 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Sunday, 28 June 2015

Count Number of Inversion




Posted by Unknown at 23:19 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Bucket Sort




Posted by Unknown at 23:06 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Home
Subscribe to: Posts (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2017 (5)
    • ▼  March (3)
      • Find Kth Element which has at least one divisor < 50
      • Find Kth Element In Ascending Order And Delete It,...
      • Younger Brother[CODECHEF] : Grundy Number
    • ►  February (2)
  • ►  2016 (5)
    • ►  October (4)
    • ►  September (1)
  • ►  2015 (10)
    • ►  September (2)
    • ►  July (3)
    • ►  June (5)
Simple theme. Theme images by enot-poloskun. Powered by Blogger.